Bugzilla – Bug 17573
Very wide image is locking up the scanner
Last modified: 2011-09-15 06:18:53 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.
Created attachment 7468 [details] GIF file causing this lockup
Fixed in https://github.com/andygrundman/libmediascan/commit/f941148a0592e80ccbacc5495690b31843d1a199
== 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)