Page 1 of 2
Convert from tiff to png not working fine
Posted: 2018-02-13T03:45:50-07:00
by rokadeaks
I have real image like
https://ufile.io/mihvx which is in tiff format.
When I use convert command to convert from tiff to png I got image as follow
https://ufile.io/l4eez
Can you please help me to know why this is happening or reason behind it
Re: Convert from tiff to png not working fine
Posted: 2018-02-13T03:53:29-07:00
by snibgo
The links don't work for me. The first seems to be to a web page that shows a png image, not tiff.
Please also show the exact command you used, and say what version of IM you used, on what platform.
EDIT to add: don't multi-post. I have deleted your other posts.
Re: Convert from tiff to png not working fine
Posted: 2018-02-13T04:01:37-07:00
by rokadeaks
First image is png because I have took screen shot of real image to show you how it should be.
Second is converted image with convert command.
image magick version :
Version: ImageMagick 6.9.8-10 Q16 x86_64 2017-07-15
http://www.imagemagick.org
Copyright: © 1999-2017 ImageMagick Studio LLC
License:
http://www.imagemagick.org/script/license.php
Features: Cipher DPC Modules OpenMP
Delegates (built-in): bzlib djvu fftw fontconfig freetype jbig jng jpeg lcms lqr ltdl lzma openexr pangocairo png tiff webp wmf x xml zlib
Command:
convert.exe -limit memory 256MiB -limit map 1024MiB -limit disk 1024MiB -define bmp:format=bmp3 -antialias -quality 85 "D:/Mit Alphakanal und FSP nicht aktiviert.tif" -profile D:/icc/5f1da5cf806216e293f13f20d8ee680c.icc -intent Relative -black-point-compensation -profile sRGB.icc -colorspace srgb -resize "1280x1280>" "D:/thumbs/master.png"
even I tried with simple convert command on command prompt like:
convert "D:/Mit Alphakanal und FSP nicht aktiviert.tif" "D:/Test_master.png"
still I am getting wrong result
platform : on both window & linux
Re: Convert from tiff to png not working fine
Posted: 2018-02-13T10:02:57-07:00
by fmw42
Please repost your links to your images to some other hosting provider or fix them so they work. Your links require login to download.
Re: Convert from tiff to png not working fine
Posted: 2018-02-14T06:20:55-07:00
by rokadeaks
Updated links
Re: Convert from tiff to png not working fine
Posted: 2018-02-14T06:21:17-07:00
by rokadeaks
fmw42 wrote: ↑2018-02-13T10:02:57-07:00
Please repost your links to your images to some other hosting provider or fix them so they work. Your links require login to download.
updated links
Re: Convert from tiff to png not working fine
Posted: 2018-02-14T10:33:28-07:00
by fmw42
The file I get downloaded is still PNG in both cases. The input is not TIFF! Please try again.
Re: Convert from tiff to png not working fine
Posted: 2018-03-13T08:06:30-07:00
by rokadeaks
@fmw42:
Updated links can you please have look
Re: Convert from tiff to png not working fine
Posted: 2018-03-13T11:01:49-07:00
by fmw42
try
Code: Select all
convert mit-alphakanal-und-fsp-nicht-aktiviert.tif -alpha off mit-alphakanal-und-fsp-nicht-aktiviert.png
Re: Convert from tiff to png not working fine
Posted: 2018-03-14T06:13:52-07:00
by rokadeaks
@fmw42 : It's working thanks but
Can you please explain me what's the reason basically & why we need to do -alpha off
Re: Convert from tiff to png not working fine
Posted: 2018-03-14T09:39:56-07:00
by fmw42
Simply because your file showed no actual full transparency. So I simply tried turning alpha off and it worked.
Re: Convert from tiff to png not working fine
Posted: 2018-03-15T11:41:52-07:00
by fmw42
You also have a clip path. If you want to use that to keep the background transparent, then try
Code: Select all
convert mit-alphakanal-und-fsp-nicht-aktiviert.tif -alpha transparent -clip -alpha opaque -strip result.png
Re: Convert from tiff to png not working fine
Posted: 2018-03-20T02:37:16-07:00
by rokadeaks
Hi
I have existing command like this
convert.exe -limit memory 256MiB -limit map 1024MiB -limit disk 1024MiB -define bmp:format=bmp3 -antialias -quality 85 "D:/Mit Alphakanal Transparenz und FSP aktiviert.tif[0]" "(" +clone -threshold 100% -clip-path "frei" -alpha extract +clip -alpha copy ")" -compose copy_opacity -composite -profile D:/data/cache/icc/65f0b21506bf7bf8884ca1b0b9404565-0.icc -intent Relative -black-point-compensation -profile sRGB.icc -colorspace srgb -resize "1280x1280>" "D:/data/thumbs/master.png"
How we can add changes suggested by you in this command can you please guide
Re: Convert from tiff to png not working fine
Posted: 2018-03-20T09:51:34-07:00
by fmw42
I have no idea what you are trying to do. Can you explain? You command does not make sense to me. Why do you use -define bmp:format=bmp3 when you are creating a PNG output?
Re: Convert from tiff to png not working fine
Posted: 2018-04-06T05:04:56-07:00
by rokadeaks
https://ufile.io/o5q81
Here on link we have zip file in which 4 tiff files are there for all those 4 files I wish to convert to png.
Can you please provide me generic command with which for all 4 files I should have same png image after conversion.