Skip to content
This repository has been archived by the owner on Aug 1, 2019. It is now read-only.

Image weight optimization #1311

Closed
fbunoz opened this issue Jan 5, 2017 · 2 comments
Closed

Image weight optimization #1311

fbunoz opened this issue Jan 5, 2017 · 2 comments
Labels

Comments

@fbunoz
Copy link

fbunoz commented Jan 5, 2017

I uploaded a photo : 912 x 1216 px and 528 518 bytes.
The most of my images have this size (or 1216 x 912 px), because it correspond to 1/3 of the full size of my APN. I prefer reduce the size with an integer ratio to optimize the noise reduction.
I reduce the size to ~1200px and 4-500ko to limit the weigth of the images on the c2c server. I use a bigger size (weigth : ~1Mo) only for very beautiful photos or reusable photos to add route track.

But the result is :

It means that the original photo has been resized (without change the size) to generate the BI photo, although it was not necessary. And the resizing has increased the weight !
On the V5, when the original size was smaller than BI max size, the photo was not resized for BI, and on the disk a simple unix link was created to the original photo. The disk space was saved.
On the V6, we lost 535 kB.

If we can't use unix link for BI, it would better to generate a BI image lighter than the original.

@fbunoz fbunoz added the Images label Jan 5, 2017
@asaunier
Copy link
Member

asaunier commented Jan 6, 2017

This issue should be moved to https://github.com/c2corg/v6_images/issues

@fbunoz fbunoz closed this as completed Jan 6, 2017
@fbunoz
Copy link
Author

fbunoz commented Jan 6, 2017

Moved to c2corg/v6_images#33

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants