Page 1 of 1
TIFF image conversion problem (inverse)
Posted: 2007-10-03T07:54:15-07:00
by xhenxhe
I have group 4 Tiff file (attached) I run the following code to convert it to pdf
Code: Select all
$im = new Imagick('barcodes.tif');
$im->setFormat('PDF');
$im->writeImage('barcodes.pdf');
The result is an inverse of the original file. Has anyone experienced this. Is there a workaround?
I can change the compression to jpeg or something, but it makes the pdf file much larger.
Re: TIFF image conversion problem (inverse)
Posted: 2007-10-03T08:06:00-07:00
by mkoppanen
xhenxhe wrote:I have group 4 Tiff file (attached) I run the following code to convert it to pdf
Code: Select all
$im = new Imagick('barcodes.tif');
$im->setFormat('PDF');
$im->writeImage('barcodes.pdf');
The result is an inverse of the original file. Has anyone experienced this. Is there a workaround?
I can change the compression to jpeg or something, but it makes the pdf file much larger.
Try $im->setImageCompression( Imagick::COMPRESSION_ZIP );
Re: TIFF image conversion problem (inverse)
Posted: 2007-10-03T08:06:48-07:00
by mkoppanen
By the way are you running Imagick on windows ?
Re: TIFF image conversion problem (inverse)
Posted: 2007-10-03T08:11:53-07:00
by mkoppanen
I tested this also and works here just fine (running Debian Etch / Imagick 2.0.0 / ImageMagick 6.3.6)
Re: TIFF image conversion problem (inverse)
Posted: 2007-10-03T08:55:30-07:00
by xhenxhe
mkoppanen wrote:By the way are you running Imagick on windows ?
Yes, unfortunately it's a requirement I have
I'm testing this in XP / IIS / Imagick 2.0.0 / ImageMagick 6.3.3
Re: TIFF image conversion problem (inverse)
Posted: 2007-10-03T09:47:27-07:00
by xhenxhe
xhenxhe wrote:I'm testing this in XP / IIS / Imagick 2.0.0 / ImageMagick 6.3.3
I take that back. I'm using Imagick 2.0.0RC1
I'm not sure how to get the latest DLL for windows or how to update my ImageMagick version. Can you help me with that?
Re: TIFF image conversion problem (inverse)
Posted: 2007-10-03T09:55:23-07:00
by mkoppanen
xhenxhe wrote:xhenxhe wrote:I'm testing this in XP / IIS / Imagick 2.0.0 / ImageMagick 6.3.3
I take that back. I'm using Imagick 2.0.0RC1
I'm not sure how to get the latest DLL for windows or how to update my ImageMagick version. Can you help me with that?
You can't currently upgrade your ImageMagick version. We are working on getting dynamic builds and newer version of ImageMagick libraries for Imagick windows builds.
There are some other issues with the current build also, but I can not affect the ImageMagick version that is used to build Imagick DLLs.
Have you tried negateImage on these images?
Re: TIFF image conversion problem (inverse)
Posted: 2007-10-03T10:18:36-07:00
by xhenxhe
mkoppanen wrote:Have you tried negateImage on these images?
Negate seems to work. I just fear the inconsistencies with Linux & Windows because some of my builds will be on Linux and some on IIS. Too bad I'm not a C programmers so I could help out with this project.
Maybe I could help with the documentation since that seems to be lacking right now.
Re: TIFF image conversion problem (inverse)
Posted: 2007-10-03T11:09:00-07:00
by mkoppanen
xhenxhe wrote:mkoppanen wrote:Have you tried negateImage on these images?
Negate seems to work. I just fear the inconsistencies with Linux & Windows because some of my builds will be on Linux and some on IIS. Too bad I'm not a C programmers so I could help out with this project.
Maybe I could help with the documentation since that seems to be lacking right now.
If you have time I'm more than glad to have help with that. Do you use IRC (thats the easiest way to get you started) ?