Convert from PNG to GIF gives error

Discussions on NConvert - the command line tool for image conversion and manipulation

Moderators: XnTriq, helmut, xnview

Guest

Convert from PNG to GIF gives error

Post by Guest »

Anyone tell me why I get the following error when using NConvert to convert from png to gif?

command used:
nconvert -out gif -o $%.gif "c:\my documents\mypic.png"

error received:
Error: This picture cannot be written using this format (C:\my documents\mypic.gif)

XnView can convert it fine, but nconvert seems to struggle.
User avatar
xnview
Author of XnView
Posts: 44926
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Convert from PNG to GIF gives error

Post by xnview »

Anonymous wrote:Anyone tell me why I get the following error when using NConvert to convert from png to gif?

command used:
nconvert -out gif -o $%.gif "c:\my documents\mypic.png"

error received:
Error: This picture cannot be written using this format (C:\my documents\mypic.gif)

XnView can convert it fine, but nconvert seems to struggle.
use -colors 256
Pierre.
User avatar
DOS386
Posts: 291
Joined: Sun Jun 11, 2006 2:43 pm

GIF :-(

Post by DOS386 »

convert from png to gif?
Problem clarified (GIF restricted to 256 colours), but I would
NOT prefer GIF over PNG anyway ... :idea:

PS: Use PNGOUT to convert GIF to PNG or optimize PNG's ... :idea:
There is indeed no WinZIP under my rock.