-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Generated image is bigger than original #17
Comments
I have verified your result. So if the derived output size exactly matches the input, and is the same format, then we can consider returning the original image. I wonder if there are any other side-effects (metadata, etc.) that we would always want to maintain, and I wonder how well this would play with the storage abstraction that is being discusses in the GAE compatibility issue (#13). Hmm... |
Indeed, i tought that too. Meanwhile, I ended starting a generic FlaskImages service for my app, What surprised me was the default=75. I tough the default was 95, and this Perhaps after generating the image, do this analysis and determine which Best, []s Lovato sent from GMail On Thu, Jun 26, 2014 at 9:15 AM, Mike Boers [email protected]
|
Please, validate this.
When opening this, https://pbs.twimg.com/media/Bq1dN3lIEAAgQbv.jpg, a 800px wide image, I got on chrome inspect a 33.2k size.
If I pass it through FlaskImages, default quality (75), and ask for 800 px as width output, I got a 33.7k size.
I am doing imgsizer/remote?w=800&u=https://pbs.twimg.com/media/Bq1dN3lIEAAgQbv.jpg
What do you think if FlaskImages, after generating the final file, knowing that the original is smaller, deliver and cache the original, as if it was generated by itself.
I know it depends on the original image, but it did happen sometimes.
Best
Lovato
The text was updated successfully, but these errors were encountered: