Image crop from Portrait to Landscape -> Timber uses old thumbnail size
-
Hi everyone.
I think i might just have found a bug in timber. Let me explain:
I have a thumbnail size that is 2048x2048px. lets call it xlarge
When I upload an image of 2000x4196px, WP correctly makes a xlarge thumbnail of 1000x2048px
When I now crop this image to landscape format 2000x1000px, wordpress doesn’t generate a xlarge thumbnail since it’s below the 2048px threshold.
I include the image in my twig file with
{{ Image(image).src('xlarge') }}
.. wordpress or timber automatically takes the old, uncropped xlarge thumbnail since for the cropped version, there is no xlarge thumbnail.
is this a bug in timber or in wordpress? Should i open a github issue?
thanks in advance
- The topic ‘Image crop from Portrait to Landscape -> Timber uses old thumbnail size’ is closed to new replies.