Page 1 of 1
Convert PNG to ICO
Posted: 2019-05-14T16:10:40-07:00
by activat
Hallo, i convert PNG to ICO with next command:
Code: Select all
magick -density 128x128 -background none in.png -resize 128x128 out.ico
as result i have ico file with artefact's. Please help me with correct command.
I use windows.
Example file:
Re: Convert PNG to ICO
Posted: 2019-05-14T16:55:58-07:00
by fmw42
Please always provide your Imagemagick version and platform/OS when asking questions. Also post your input PNG so we can test with it.
Note that your command should properly read the input first. IM 7 is less forgiving that IM 6.
Code: Select all
magick in.png -background none -resize 128x128 -density 128x128 out.ico
Re: Convert PNG to ICO
Posted: 2019-05-14T17:42:23-07:00
by activat
Hallo, thank you for help. My IM version is:
Code: Select all
ImageMagick-7.0.8-44-Q16-x64-dll.exe
And i use IM on windows.
Example image in my first post.
I run command you provide and still see artefact's.
Code: Select all
magick red-apple_1f34e.png -background none -resize 128x128 -density 128x128 red-apple_1f34e.ico
That you suggest - its possible to do something?
Thank you again.
Re: Convert PNG to ICO
Posted: 2019-05-14T18:10:27-07:00
by fmw42
This command works fine for me on IM 7.0.8.44 Q16 HDRI Mac OSX Sierra. Sorry, I do not use Windows.
Code: Select all
magick in.png -background none -resize 128x128 -density 128x128 out.ico
Do you get those artifacts for all PNG files or just that one?
Have you tried upgrading to IM 7.0.8.45?
Is your version of libpng current? Use
and look at the end of the line for PNG to see the version. Mine is
libpng 1.6.36
Re: Convert PNG to ICO
Posted: 2019-05-14T18:54:04-07:00
by activat
Hallo, i upgrade to latest IM and my libpng is 1.6.37
I have same problem on all my PNG set.
But i find that make problem. It's resize command.
My PNG's is 144x144 size and without resize, just convert - everything perfect.
For me size not important so problem solve itself.
Thanks for help.
Re: Convert PNG to ICO
Posted: 2019-05-15T03:30:01-07:00
by snibgo
@activat: when you report problems, please link to the actual input and output files, eg out.ico. Supplying a link to a screenshot make by a program such as IrfanView isn't enough, because there might be a bug in IrfanView.
Re: Convert PNG to ICO
Posted: 2019-05-15T05:46:06-07:00
by activat
You completely right! After check out.ico in another's viewers i found that problem only in my IrfanView .
Thanks for point me on this. Maybe next time i be more smart.
ps: i take files from this page:
https://emojipedia.org/facebook/
in.png
out.ico
Many thanks for help!