Page 1 of 1
Imagemacgick conversion issues black/white tiff files
Posted: 2016-03-07T10:40:35-07:00
by naveen800
During the conversion of Black/White tiff files, converted Black-&-white Tiff files are often (nearly always) having black values skewed. The blacks and darker values are fading significantly.
I'm trying to convert the tiff file to convert thumbnail and then to apply the watermark on converted thumbnail on Imagemagick, here is the convert script
Step1: convert PIA20038.tif -intent relative -sample 1024x768> -quality 95 -colorspace sRGB -strip -auto-orient PIA20038_thumb.JPG Step 2: convert DAL_Watermark1024x1024.png -fill grey50 -colorize 80
miff:- | composite -dissolve 100% -gravity southeast - PIA20038_thumb.JPG PIA20038.JPG
OS version - SunOS ew1segu5676 5.10 Generic_148888-05 sun4v sparc sun4v
Image transformation we use ImageMagick (ImageMagick 6.7.6-5 ).
Thanks,
Naveen
Re: Imagemacgick conversion issues black/white tiff files
Posted: 2016-03-07T10:46:43-07:00
by naveen800
Re: Imagemacgick conversion issues black/white tiff files
Posted: 2016-03-07T10:48:14-07:00
by naveen800
Re: Imagemacgick conversion issues black/white tiff files
Posted: 2016-03-07T10:57:57-07:00
by snibgo
What is "-colorspace sRGB" doing there? Unless it helps, take it out.
I suggest you upgrade. Versions around that time were confused by grayscale images.
Re: Imagemacgick conversion issues black/white tiff files
Posted: 2016-03-07T11:42:14-07:00
by naveen800
We have already tried to upgrade but upgrade fails on this OS version, recently we have contacted your team and here is the below response. Can you please guide me the procedure to upgrade the Libraries on this current version:
Imagemagick forum response:
We're also using libtiff 4.0.4. Does magick/magick-baseconfig.h define MAGICKCORE_HAVE_TIFFISBIGENDIAN?
Our OS version - SunOS ew1segu5676 5.10 Generic_148888-05 sun4v sparc sun4v
ImageMagick Version:
-bash-3.2$ convert -version
Version: ImageMagick 6.7.6-5 2012-04-16 Q16
http://www.imagemagick.org
Copyright: Copyright (C) 1999-2012 ImageMagick Studio LLC
Features:
Re: Imagemacgick conversion issues black/white tiff files
Posted: 2016-03-07T12:02:08-07:00
by snibgo
Sorry, I can upgrade and build on Windows, but know nothing about other platforms.
naveen800 wrote:Does magick/magick-baseconfig.h define MAGICKCORE_HAVE_TIFFISBIGENDIAN?
That was a question a developer asked you. Have you answered it?
Re: Imagemacgick conversion issues black/white tiff files
Posted: 2016-03-07T12:04:52-07:00
by naveen800
Im not sure how to verify/define the magick/magick-baseconfig.h?
Can you please guide me?
Re: Imagemacgick conversion issues black/white tiff files
Posted: 2016-03-07T12:26:43-07:00
by snibgo
Your development directory has a subdirectory called "magick".
A file in their called "magick-baseconfig.h" was created when you built your IM.
Open that file with a text editor. Does it have lines containing "MAGICKCORE_HAVE_TIFFISBIGENDIAN"? If so, what do they say?
Re: Imagemacgick conversion issues black/white tiff files
Posted: 2016-03-07T12:40:00-07:00
by naveen800
I dont see magick-baseconfig.h file ImageMagick installation fodler:
/opt/app/opentext/MediaManagement/ImageMagick/include/ImageMagick/magick/
-bash-3.2$ ls -ltr
total 784
-rwxr-xr-x 1 otmm artesia 2445 Apr 16 2012 PreRvIcccm.h
-rwxr-xr-x 1 otmm artesia 4048 Apr 16 2012 MagickCore.h
-rwxr-xr-x 1 otmm artesia 980 Apr 16 2012 ImageMagick.h
-rwxr-xr-x 1 otmm artesia 3998 Apr 16 2012 effect.h
-rwxr-xr-x 1 otmm artesia 5417 Apr 16 2012 draw.h
-rwxr-xr-x 1 otmm artesia 2683 Apr 16 2012 distort.h
-rwxr-xr-x 1 otmm artesia 1055 Apr 16 2012 display.h
-rwxr-xr-x 1 otmm artesia 15618 Apr 16 2012 deprecate.h
-rwxr-xr-x 1 otmm artesia 2220 Apr 16 2012 delegate.h
-rwxr-xr-x 1 otmm artesia 1257 Apr 16 2012 decorate.h
-rwxr-xr-x 1 otmm artesia 1666 Apr 16 2012 constitute.h
-rwxr-xr-x 1 otmm artesia 2028 Apr 16 2012 configure.h
-rwxr-xr-x 1 otmm artesia 1996 Apr 16 2012 compress.h
-rwxr-xr-x 1 otmm artesia 3233 Apr 16 2012 composite.h
-rwxr-xr-x 1 otmm artesia 2017 Apr 16 2012 compare.h
-rwxr-xr-x 1 otmm artesia 1589 Apr 16 2012 colorspace.h
-rwxr-xr-x 1 otmm artesia 1022 Apr 16 2012 colormap.h
-rwxr-xr-x 1 otmm artesia 3116 Apr 16 2012 color.h
-rwxr-xr-x 1 otmm artesia 1641 Apr 16 2012 coder.h
-rwxr-xr-x 1 otmm artesia 988 Apr 16 2012 client.h
-rwxr-xr-x 1 otmm artesia 1129 Apr 16 2012 cipher.h
-rwxr-xr-x 1 otmm artesia 3469 Apr 16 2012 cache-view.h
-rwxr-xr-x 1 otmm artesia 2622 Apr 16 2012 cache.h
-rwxr-xr-x 1 otmm artesia 2212 Apr 16 2012 blob.h
-rwxr-xr-x 1 otmm artesia 1607 Apr 16 2012 attribute.h
-rwxr-xr-x 1 otmm artesia 1378 Apr 16 2012 artifact.h
-rwxr-xr-x 1 otmm artesia 964 Apr 16 2012 api.h
-rwxr-xr-x 1 otmm artesia 1306 Apr 16 2012 annotate.h
-rwxr-xr-x 1 otmm artesia 959 Apr 16 2012 animate.h
-rwxr-xr-x 1 otmm artesia 1013 Apr 16 2012 accelerate.h
-rwxr-xr-x 1 otmm artesia 4956 Apr 16 2012 quantum.h
-rwxr-xr-x 1 otmm artesia 1989 Apr 16 2012 quantize.h
-rwxr-xr-x 1 otmm artesia 1625 Apr 16 2012 property.h
-rwxr-xr-x 1 otmm artesia 1792 Apr 16 2012 profile.h
-rwxr-xr-x 1 otmm artesia 919 Apr 16 2012 prepress.h
-rwxr-xr-x 1 otmm artesia 1777 Apr 16 2012 policy.h
-rwxr-xr-x 1 otmm artesia 5886 Apr 16 2012 pixel.h
-rwxr-xr-x 1 otmm artesia 1774 Apr 16 2012 paint.h
-rwxr-xr-x 1 otmm artesia 5077 Apr 16 2012 option.h
-rwxr-xr-x 1 otmm artesia 4535 Apr 16 2012 morphology.h
-rwxr-xr-x 1 otmm artesia 1770 Apr 16 2012 montage.h
-rwxr-xr-x 1 otmm artesia 1469 Apr 16 2012 monitor.h
-rwxr-xr-x 1 otmm artesia 2382 Apr 16 2012 module.h
-rwxr-xr-x 1 otmm artesia 1479 Apr 16 2012 mime.h
-rwxr-xr-x 1 otmm artesia 91904 Apr 16 2012 methods.h
-rwxr-xr-x 1 otmm artesia 4005 Apr 16 2012 method-attribute.h
-rwxr-xr-x 1 otmm artesia 2004 Apr 16 2012 memory_.h
-rwxr-xr-x 1 otmm artesia 1231 Apr 16 2012 matrix.h
-rwxr-xr-x 1 otmm artesia 5116 Apr 16 2012 magick-type.h
-rwxr-xr-x 1 otmm artesia 3230 Apr 16 2012 magick.h
-rwxr-xr-x 1 otmm artesia 47434 Apr 16 2012 magick-config.h
-rwxr-xr-x 1 otmm artesia 1655 Apr 16 2012 magic.h
-rwxr-xr-x 1 otmm artesia 2599 Apr 16 2012 log.h
-rwxr-xr-x 1 otmm artesia 2473 Apr 16 2012 locale_.h
-rwxr-xr-x 1 otmm artesia 2120 Apr 16 2012 list.h
-rwxr-xr-x 1 otmm artesia 2078 Apr 16 2012 layer.h
-rwxr-xr-x 1 otmm artesia 2762 Apr 16 2012 image-view.h
-rwxr-xr-x 1 otmm artesia 11240 Apr 16 2012 image.h
-rwxr-xr-x 1 otmm artesia 951 Apr 16 2012 identify.h
-rwxr-xr-x 1 otmm artesia 1453 Apr 16 2012 histogram.h
-rwxr-xr-x 1 otmm artesia 2909 Apr 16 2012 hashmap.h
-rwxr-xr-x 1 otmm artesia 3926 Apr 16 2012 geometry.h
-rwxr-xr-x 1 otmm artesia 1863 Apr 16 2012 gem.h
-rwxr-xr-x 1 otmm artesia 2789 Apr 16 2012 fx.h
-rwxr-xr-x 1 otmm artesia 1087 Apr 16 2012 fourier.h
-rwxr-xr-x 1 otmm artesia 1425 Apr 16 2012 feature.h
-rwxr-xr-x 1 otmm artesia 4517 Apr 16 2012 exception.h
-rwxr-xr-x 1 otmm artesia 2914 Apr 16 2012 enhance.h
-rwxr-xr-x 1 otmm artesia 1113 Apr 16 2012 xwindow.h
-rwxr-xr-x 1 otmm artesia 2150 Apr 16 2012 xml-tree.h
-rwxr-xr-x 1 otmm artesia 2024 Apr 16 2012 widget.h
-rwxr-xr-x 1 otmm artesia 3095 Apr 16 2012 version.h
-rwxr-xr-x 1 otmm artesia 2004 Apr 16 2012 utility.h
-rwxr-xr-x 1 otmm artesia 2119 Apr 16 2012 type.h
-rwxr-xr-x 1 otmm artesia 1876 Apr 16 2012 transform.h
-rwxr-xr-x 1 otmm artesia 1422 Apr 16 2012 token.h
-rwxr-xr-x 1 otmm artesia 1519 Apr 16 2012 timer.h
-rwxr-xr-x 1 otmm artesia 2118 Apr 16 2012 threshold.h
-rwxr-xr-x 1 otmm artesia 3438 Apr 16 2012 string_.h
-rwxr-xr-x 1 otmm artesia 1113 Apr 16 2012 stream.h
-rwxr-xr-x 1 otmm artesia 3927 Apr 16 2012 statistic.h
-rwxr-xr-x 1 otmm artesia 1973 Apr 16 2012 splay-tree.h
-rwxr-xr-x 1 otmm artesia 927 Apr 16 2012 signature.h
-rwxr-xr-x 1 otmm artesia 1134 Apr 16 2012 shear.h
-rwxr-xr-x 1 otmm artesia 1329 Apr 16 2012 semaphore.h
-rwxr-xr-x 1 otmm artesia 1103 Apr 16 2012 segment.h
-rwxr-xr-x 1 otmm artesia 1756 Apr 16 2012 resource_.h
-rwxr-xr-x 1 otmm artesia 1605 Apr 16 2012 resize.h
-rwxr-xr-x 1 otmm artesia 2581 Apr 16 2012 resample.h
-rwxr-xr-x 1 otmm artesia 1505 Apr 16 2012 registry.h
-rwxr-xr-x 1 otmm artesia 1533 Apr 16 2012 random_.h
Re: Imagemacgick conversion issues black/white tiff files
Posted: 2016-03-08T08:43:40-07:00
by naveen800
Hi
Do you have any update?
Thanks,
Naveen