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
files (binary 'P6' PPM, not the 'P3' ASCII version).  The ImageMagick
(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 same file on a linux

It looks suspiciously like the sort of corruption you'd get from binary/text
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
  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

I would attach a problem .ppm.bz2 file but it seems to be rejected by
our firewall or the list, so if anyone wants an image which shows
the problem please mail me directly.



[Sorry, mandatory blurb]

Tim Day
Scientist (Visualisation)
Bonnington Bond, 2 Anderson Place, Edinburgh EH5 6NP, UK
Tel + 44 (0)131 472 5725 Fax: + 44 (0)131 472 4799

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

Unsubscribe info:
Problem reports:

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