This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

ImageMagick doesn't like compressed .ppm files (bug?)


On my proper unix/linux systems I do a lot of imaging work with .ppm.gz or
.ppm.bz2
files (binary 'P6' PPM, not the 'P3' ASCII version).  The ImageMagick
utilities
(e.g display, convert) understand this format and it works well.

However, with Cygwin, having created an image.ppm.bz2 or image.ppm.gz2 file
  display image.ppm.bz2
exhibits some corruption of the image, but
  bunzip2 image.ppm.bz2 ; display image.ppm
works fine (as does display image.ppm.bz2 of the file on a linux box).

It looks suspiciously like the sort of corruption you'd get from binary/text
filemode
confusion, but setting CYGWIN=binmode or accessing the files by a binary
mount makes
no difference.

The problem isn't limited to display e.g
  convert image.ppm.bz2 image.jpg ; display image.jpg
or
  convert image.ppm.bz2 image.xbm ; xsetroot -bitmap image.xbm
both show corruption.

I've attached the result of a
  cygcheck -s -v -r > cygcheck.txt
and one of the problem image.ppm.bz2 files.

If this is a bug, hope this is useful info.
If not, what am I doing wrong ??

Thanks
Tim

--

[Sorry, mandatory blurb]

Tim Day
Scientist (Visualisation)
Barco
Bonnington Bond, 2 Anderson Place, Edinburgh EH5 6NP, UK
Tel + 44 (0)131 472 5725 Fax: + 44 (0)131 472 4799
http://www.barco.com
mailto:tim.day@barco.com

Unless indicated otherwise, the information contained in this message is
privileged and confidential, and is intended only for the use of the
addressee(s) named above and others who have been specifically authorized to
receive it. If you are not the intended recipient, you are hereby notified
that any dissemination, distribution or copying of this message and/or
attachments is strictly prohibited. The company accepts no liability for any
damage caused by any virus transmitted by this email. Furthermore, the
company does not warrant a proper and complete transmission of this
information, nor does it accept liability for any delays. If you have
received this message in error, please contact the sender and delete the
message. Thank you.


Attachment: cygcheck.txt
Description: Text document

Attachment: image.ppm.bz2
Description: Binary data

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]