I’m sorry but that makes no sense. Do you mean file size is smaller? Depends on 
jpeg compression options. It can be many times smaller than a png. 

> On May 11, 2020, at 10:22 AM, Vivi <createmap4...@gmail.com> wrote:
> 
> 
> 
> I found a snippet, memory usage with PNG vs JPG (more than 2x memory than PNG)
> https://gist.github.com/logrusorgru/570d64fd6a051e0441014387b89286ca
> 
> Why does JPG consume more memory?
> 
> Is it fine to have libvips as a dependency for content management system in 
> the same way as PHP require with Imagick or GD?
> 
> 
>> On Monday, 11 May 2020 18:35:47 UTC+8, Nick wrote:
>> Quoth Vivi: 
>> > How do you advice to resize and crop JPEG and PNG or probably WebP images 
>> > without rely on 3rd parties dependencies?
>> > 
>> > It was hard to find a good snippet or could be useful to have basic API 
>> > function in Go standard library since it's a common feature. 
>> 
>> I'd encourage you to consider trying to implement simple image 
>> manipulation algorithms yourself, if only for practice. I've found the 
>> interfaces in the image package really nice to work with, and have 
>> learned a lot implementing useful things myself based on them.   
>> There's a very good blog post about the package here: 
>> https://blog.golang.org/image 
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "golang-nuts" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to golang-nuts+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/golang-nuts/418137eb-52ee-433f-b45d-1a4b0a1c6c58%40googlegroups.com.

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/22278AC9-7E28-4078-A0C5-2F259B05F227%40ix.netcom.com.

Reply via email to