Opened 9 years ago
Closed 8 years ago
#34980 closed defect (bug) (fixed)
image_get_intermediate_size() sometimes skips image sizes
Reported by: | flixos90 | Owned by: | joemcgill |
---|---|---|---|
Milestone: | 4.6 | Priority: | normal |
Severity: | normal | Version: | 2.5 |
Component: | Media | Keywords: | has-patch needs-unit-tests |
Focuses: | Cc: |
Description
Sometimes it can happen that an image size is not considered in image_get_intermediate_size()
although it applies for the array.
This is because the product of the image width and height is used as array key, however there are cases where different image sizes could share the same product (for example 150x300 and 200x225).
Attachments (1)
Change History (7)
#3
@
8 years ago
- Milestone changed from Awaiting Review to 4.6
- Owner set to joemcgill
- Status changed from new to reviewing
Yup, this is indeed a bug. Will need unit tests, but am moving to 4.6 for consideration.
#4
@
8 years ago
If we end up going with something like 34384.2.diff to fix #34384, we should end up avoiding this issue.
This ticket was mentioned in Slack in #core-images by joemcgill. View the logs.
8 years ago
Note: See
TracTickets for help on using
tickets.
Fixes the bug by allowing multiple sizes of the same width*height