Stops Dead - Just Installed on Ubuntu Version 0.2.7

Bug #1205132 reported by Phil Welch
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
phatch (Ubuntu)
New
Undecided
Unassigned

Bug Description

philmorew@omega:~/projects/curl/c/offers/resized_images$ lsb_release -rd
Description: Ubuntu 12.04.2 LTS
Release: 12.04

Action List:

{'actions': [{'fields': {'Canvas Height': u'300 px',
                         'Canvas Width': u'300 px',
                         'Constrain Proportions': 'yes',
                         'Resample Image': 'automatic',
                         'Resolution': u'<dpi>',
                         'Scale Down Only': u'no',
                         '__enabled__': 'yes'},
              'label': 'Scale'},
             {'fields': {'As': u'jpg',
                         'File Name': u'<filename>',
                         'In': u'/home/philmorew/projects/curl/c/offers/resized_images',
                         'JPEG Quality': u'85',
                         'JPEG Size Maximum': '0 kb',
                         'JPEG Size Tolerance': u'50 kb',
                         'Metadata': 'yes',
                         'PNG Optimize': 'no',
                         'Resolution': u'<dpi>',
                         'Show Type Options': 'no',
                         'TIFF Compression': u'<compression>',
                         '__enabled__': 'yes'},
"product _images.phatch" [noeol] 23L, 1116C 1,1 Top

================

Processed about 30 images until it ran into this one, which was originally over 600,000 bytes in size. I resized it using Gimp with no problem but it continues to stop dead in it's tracks when it encounters the resized image I've attached.

It buzzes through the initial image scan without difficulty. No error message is presented on the screen.

================

syslog messages:

Jul 25 10:29:26 omega AptDaemon: INFO: CommitPackages() was called: dbus.Array([dbus.String(u'phatch')], signature=dbus.Signature('s')), dbus.Array([dbus.String(u'')], signature=dbus.Signature('s')), dbus.Array([dbus.String(u'')], signature=dbus.Signature('s')), dbus.Array([dbus.String(u'')], signature=dbus.Signature('s')), dbus.Array([dbus.String(u'')], signature=dbus.Signature('s')), dbus.Array([dbus.String(u'')], signature=dbus.Signature('s'))
Jul 25 10:29:27 omega AptDaemon.Trans: INFO: Queuing transaction /org/debian/apt/transaction/437cfa7f944d465abfce85d735b32f3e
Jul 25 10:29:37 omega AptDaemon.Worker: INFO: Simulating trans: /org/debian/apt/transaction/437cfa7f944d465abfce85d735b32f3e
Jul 25 10:29:39 omega AptDaemon.Worker: INFO: Committing packages: dbus.Array([dbus.String(u'phatch')], signature=dbus.Signature('s')), dbus.Array([], signature=dbus.Signature('s')), dbus.Array([], signature=dbus.Signature('s')), dbus.Array([], signature=dbus.Signature('s')), dbus.Array([], signature=dbus.Signature('s')), dbus.Array([], signature=dbus.Signature('s'))

================

aot.history.log:

apt/history.log:Install: libjpeg-progs:amd64 (8c-2ubuntu7, automatic), libboost-python1.46.1:amd64 (1.46.1-7ubuntu3, automatic), python-pyexiv2-doc:amd64 (0.3.2-1, automatic), python-pyexiv2:amd64 (0.3.2-1, automatic), phatch-cli:amd64 (0.2.7.1-1), phatch-doc:amd64 (0.2.7.1-1), exiftran:amd64 (2.07-9, automatic), libjpeg-turbo-progs:amd64 (1.1.90+svn733-0ubuntu4.1, automatic)
apt/history.log:Install: python-wxgtk2.8:amd64 (2.8.12.1-6ubuntu2, automatic), phatch:amd64 (0.2.7.1-1), python-wxversion:amd64 (2.8.12.1-6ubuntu2, automatic)

Revision history for this message
Phil Welch (philmorew) wrote :
Revision history for this message
Phil Welch (philmorew) wrote :

ImageMagick mogrify -resize also generates an error notification but thankfully waits until all images are processed prior to doing so. However, the result is an image that from the point where it is thought the image ends on to the bottom of the actual image, it's gray. I'm working with several variations of C Curl download scripts to see whether that might be introducing the problem, but thusfar have found nothing. If the downloaded image is left untouched, it shows no indication that anything is amiss, but only after resizing.

Revision history for this message
Phil Welch (philmorew) wrote :

After several rewrites of my curl download I was able to download ~4000 images that when processed by ImageMagick mogrify -resize encountered only 1 premature end of image error. I did this my downloading 1 image at a time rather than 10 at a time and with a sleep(1000) every hundred images. I'm not smart enough to know why this made the difference, but fortunately it did. So although Gimp was able to handle resizing of these images, and although curl 10 at a time handled two thirds without premature end of image errors, neither ImageMagick mogrify nor phatch could or would, which in some peoples might was the right thing to do. Consequently, that's my story and I'm sticking to it. I'm moving on with what I've got, so you are welcome to close this bug report since in all fairness, the bug was mine, not yours. Sorry 'bout that...

Revision history for this message
Phil Welch (philmorew) wrote :

Incidentally, a mystery - at least to me. Without exception, and I looked at what seemed like zillions, all of the images said to have "premature end of image errors", all "ended" at the exact end of the subject of the image just as the lower level background began. I don't know what that means, but it does suggest it may be a clue. The mystery to me is how any software would be smart enough to recognize that delineation given that most images had backgrounds ranging from pure white to various shades of gray.

Revision history for this message
Phil Welch (philmorew) wrote :

Found image tracking code embedded in images. Once image files grepped and images containing tracking code were deleted, no further issues were encountered.

Please close this issue. Thanks...

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.