Error: This picture cannot be written using this format

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

Moderators: helmut, XnTriq, xnview

Post Reply
thefree

Error: This picture cannot be written using this format

Post by thefree »

Code: Select all

[free@ls free]$ nconvert -out jpeg -o 1.jpg 1.gif
** NCONVERT v4.85 (c) 1991-2007 Pierre-E Gougelet (Dec 18 2007/13:29:01) **
        Version for Linux x86 (X11)  (All rights reserved)
** This is a freeware software (for non commercial use)

  Error: This picture cannot be written using this format (1.jpg)

[free@ls free]$
Can some help me?
marsh
XnThusiast
Posts: 2443
Joined: Sun May 15, 2005 6:31 am

Post by marsh »

Add the switch: -truecolors
User avatar
helmut
Posts: 8704
Joined: Sun Oct 12, 2003 6:47 pm
Location: Frankfurt, Germany

Re: Error: This picture cannot be written using this format

Post by helmut »

thefree wrote:Can some help me?
I think so. ;-) In your command you want to convert a GIF image to a JPG image. GIF images use a colour palette with a maximum of 256 different colours, whereas JPG uses truecolour (16 Mio.). nconvert will not do the required transformation automatically, you have to add -truecolor to do this conversion:

Code: Select all

nconvert" -out jpeg -truecolors -o output.jpg input.gif
Edit: Oops, marsh was 3 minutes faster with his answer.
thefree

Post by thefree »

thx
Post Reply