You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For performance reasons, a preview provider class can be modified to return an image of a maximum size which makes sense for a preview in a browser. Some people have talked of max 1024x1024 per example.
But in order to really improve performance, especially for the classes which use Imagemagick, it would be worth for the preview class to store that large image (usually PNG) in the cache before resizing it. That way, the next time a thumbnail is generated, GD can quickly resize that max size cached picture.
The text was updated successfully, but these errors were encountered:
At some point I also thought about having gradual size increases. Instead of having images for ANY pixel sizes, we could have cached images for 32x32, 128x128, 256x256, 1024x1024, etc generated on-demand.
@PVince81 we already only cache the thumbnails that are requested. Not every possible size.
So it's the decision of the app which size it requests. This makes sense IMHO
oparoz
changed the title
[Performance] Always store the preview returned by Imagemagick before resizing it
Always store the preview returned by Imagemagick before resizing it
Dec 2, 2014
For performance reasons, a preview provider class can be modified to return an image of a maximum size which makes sense for a preview in a browser. Some people have talked of max 1024x1024 per example.
But in order to really improve performance, especially for the classes which use Imagemagick, it would be worth for the preview class to store that large image (usually PNG) in the cache before resizing it. That way, the next time a thumbnail is generated, GD can quickly resize that max size cached picture.
The text was updated successfully, but these errors were encountered: