Bug 17573 - Very wide image is locking up the scanner
: Very wide image is locking up the scanner
Status: RESOLVED FIXED
Product: Logitech Media Server
Classification: Unclassified
Component: Artwork
: 7.7.0
: PC Other
: P1 major (vote)
: 7.7.0
Assigned To: Andy Grundman
: libmediascan
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-09-15 05:43 UTC by Michael Herger
Modified: 2011-09-15 06:18 UTC (History)
1 user (show)

See Also:
Category: ---


Attachments
index_25.jpg: sample image causing this issue (2.17 KB, image/jpeg)
2011-09-15 05:43 UTC, Michael Herger
Details
GIF file causing this lockup (284 bytes, image/gif)
2011-09-15 05:44 UTC, Michael Herger
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Herger 2011-09-15 05:43:30 UTC
Created attachment 7467 [details]
index_25.jpg: sample image causing this issue

...and very tall probably would as well:

Scanning file /Users/mh/Pictures/images/Nose/images/index_25.jpg
Init JPEG buffer src, 2227 bytes in buffer
Resizing from 603 x 15 -> 160 x 160
Using JPEG scale factor 1/0, new source dimensions 603 x 15
thumb using width padding 0, inner width 0, height padding 78, inner height 3,
bgcolor 0
Resizing from 603 x 15 -> 160 x 160
thumb using width padding 0, inner width 0, height padding 78, inner height 3,
bgcolor 0
Resizing from 603 x 15 -> 41 x 41
thumb using width padding 0, inner width 0, height padding 19, inner height 1,
bgcolor 0
Resizing from 603 x 15 -> 40 x 40
thumb using width padding 0, inner width 0, height padding 19, inner height 0,
bgcolor 0

Resizing the smaller side might result in a 0 pixel width/height.
Comment 1 Michael Herger 2011-09-15 05:44:25 UTC
Created attachment 7468 [details]
GIF file causing this lockup
Comment 3 SVN Bot 2011-09-15 06:18:53 UTC
 == Auto-comment from SVN commit #902 to the opensource repo by agrundman ==
 == http://svn.slimdevices.com/opensource?view=revision&revision=902 ==

Bug 17573, fixed several places where we could divide by 0 (port from lms)