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
This issue is stale because it has been open 30 days with no activity. Remove the stale label or add a comment, or this issue will be closed in 15 days. You can always re-open if you still feel this is still an issue. Tag @heynemann for more information.
Assuming STORAGE is configured, for example:
Thumbor request URL
During the first load,
engine.normalize()
is called to ensure the image is limited in size byMAX_{WIDTH,HEIGHT}
.During the second load, the raw data of the image is loaded from storage (redis in this case), but
engine.normalize()
will not be called.Expected behaviour
Images loaded should be identical for identical requests.
Perhaps the normalized version of the image is what should be stored in the storage?
Normalization happens here:
https://github.com/thumbor/thumbor/blob/master/thumbor/handlers/__init__.py#L933
A successful fetch from storage returns here:
https://github.com/thumbor/thumbor/blob/master/thumbor/handlers/__init__.py#L880
The output below shows the log for 2 identical image requests, the first is a cache miss, the second is a cache hit.
The text was updated successfully, but these errors were encountered: