Page 1 of 1

Error: This picture cannot be written using this format

Posted: Sun Feb 10, 2008 7:57 am
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?

Posted: Sun Feb 10, 2008 10:41 am
by marsh
Add the switch: -truecolors

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

Posted: Sun Feb 10, 2008 10:44 am
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.

Posted: Sun Feb 10, 2008 1:54 pm
by thefree
thx