i want to reduce the file size at converted gif

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

Moderators: XnTriq, helmut, xnview

Guest

i want to reduce the file size at converted gif

Post by Guest »

I use the fallowing option
"nconvert -out gif -o %.gif -ratio -resize 120 90 -colors 256 *.jpg"
I convert two jpg file 1.jpg and 2.jpg
i get two output gif 1.gif and 2.gif
problem is 1.gif and 2.gif have the same width and height and the same colors .but i got the diffrent file size ?what problem cause?could anybody help me?
User avatar
xnview
Author of XnView
Posts: 44926
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: i want to reduce the file size at converted gif

Post by xnview »

Anonymous wrote:I use the fallowing option
"nconvert -out gif -o %.gif -ratio -resize 120 90 -colors 256 *.jpg"
I convert two jpg file 1.jpg and 2.jpg
i get two output gif 1.gif and 2.gif
problem is 1.gif and 2.gif have the same width and height and the same colors .but i got the diffrent file size ?what problem cause?could anybody help me?
1.jpg & 2.jpg are not the same picture...
Pierre.
User avatar
helmut
Posts: 8705
Joined: Sun Oct 12, 2003 6:47 pm
Location: Frankfurt, Germany

Re: i want to reduce the file size at converted gif

Post by helmut »

Anonymous wrote:problem is 1.gif and 2.gif have the same width and height and the same colors .but i got the diffrent file size ?what problem cause?could anybody help me?
The format GIF and other graphic formats use compression to reduce file size. The compression depends very much on the image contents, e.g. for GIF (LZW) compression works very well on images with little change and few colours in it, whereas images with lots of details don't compress that well and will result in larger files - even if width & height & colour depth is the same as the other image.