#26382 closed defect (bug) (duplicate)
Scaling Image Up Fails Silently
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 3.5 |
Component: | Media | Keywords: | |
Focuses: | Cc: |
Description
The ability to scale images up was removed (I think in 3.5) and the text was changed in r24562 per this ticket #323713.
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.
Duplicate of #26381.