thumb: scaling factor for requested thumbnails is incorrect

Bug #549176 reported by mangtronix
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Internet Archive BookReader
Fix Released
High
mangtronix

Bug Description

The scaling factor requested for thumbnails may be incorrect.

E.g.
1. Load http://www-mang.archive.org/stream/bokeofsaintalban00bernuoft#page/65/mode/thumb
2. Look at the Safari activity window
3. See URLs such as http://ia341221.us.archive.org:80/~mang/BookReader/BookReaderImages.php?zip=/3/items/bokeofsaintalban00bernuoft/bokeofsaintalban00bernuoft_jp2.zip&file=bokeofsaintalban00bernuoft_jp2/bokeofsaintalban00bernuoft_0171.jp2&scale=-236&rotate=0

Expected:
The scaling factor should not be negative and should be the next larger scaling factor compared to the needed image size.

mangtronix (mang)
Changed in bookreader:
assignee: nobody → mangtronix (mang)
importance: Undecided → High
milestone: none → r23
status: New → Confirmed
Revision history for this message
mangtronix (mang) wrote :

Was asking for negative width image due to improper calculation of page view div width. See https://bugs.edge.launchpad.net/bookreader/+bug/549170

Changed in bookreader:
status: Confirmed → Triaged
Revision history for this message
mangtronix (mang) wrote :

Please refer to the initial description for observed/expected. In Safari if you right-click on a thumbnail image you can select "Open Image In New Window" to see the thumbnail image without any browser scaling. The image dimensions should roughly match what is displayed in the browser window (e.g. not massively larger)

Changed in bookreader:
assignee: mangtronix (mang) → Winnie (winnie-archive)
Revision history for this message
Winnie (winnie-archive) wrote :

Checked in Safari. No negative scaling.

Changed in bookreader:
assignee: Winnie (winnie-archive) → mangtronix (mang)
mangtronix (mang)
Changed in bookreader:
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.