Opened 7 years ago
Last modified 20 months ago
#26381 assigned defect (bug)
Scaling Image Up Fails Silently
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 3.5 |
Component: | Media | Keywords: | needs-patch |
Focuses: | Cc: |
Description (last modified by )
The ability to scale images up was removed (I think in 3.5) and the text was changed in r24562 per this ticket #23713.
However, when using the Image editor to scale an image if you enter a value larger than the image we still attempt to re-size the image and the "Restore Original link appears"
To Reproduce
1) Select an image from the media library and click the "Edit Image" button
2) Enter dimensions larger than the original dimensions. You will see a red "!" as a warning but ignore this and click the "Scale" button
3) The site will try to re-size the image and gives a success message.
The only problem is that no new image was created. To fix this we either need to give a warning and not produce a "Restore Original Image" link or prevent the user from clicking the link at all.
My vote is since we already have JavaScript that detects when the image is too large the simplest solution would be to disable the "Scale" button when the warning "!" shows.
Change History (10)
#2
in reply to:
↑ description
@
7 years ago
related: #23713
#4
@
7 years ago
It wasn't remove in 3.5. I think it was never really possible. The code changes made in 3.5 had nothing to do with scaling restrictions.
#6
@
6 years ago
- Milestone changed from Awaiting Review to Future Release
- Owner set to markoheijnen
- Status changed from new to assigned
markoheijnen - please take a look again and see if this needs to be dealt with
#7
@
6 years ago
Seems like it might make sense to disable the Scale button if we know we can't resize. We're already showing an indicator, but there's no reason to allow a user to attempt to resize if it's just going to fail.
#26382 was marked as a duplicate.