Filesize changes whereas there is no change to the picture

XnConvert Multi Platform - Windows, MacOSX, Linux

Moderators: XnTriq, helmut, xnview

Post Reply
CheeseDurger
Posts: 3
Joined: Thu Jul 07, 2016 6:09 am

Filesize changes whereas there is no change to the picture

Post by CheeseDurger »

Hi,
I'm trying to reduce image that are > to 1 MP. However, there are already multiple images < 1 MP in the input. And when the batch goes on, those images size stays the same (height and width - so far so good) but the file size changes... So why is it so ?

See, the example below : from 61,1KB to 35,2 KB. I tried the batch on jpg and png. Also, sometimes the filesize increases, and sometimes it decreases.

I searched the forums but couldn't go with anything (well, I confess I'm quite new to all of this).


Thanks.
Attachments
Action settings
Action settings
2016-07-07 08_25_46-Action center.png (2.59 KiB) Viewed 1247 times
Output settings
Output settings
2016-07-07 08_25_16-Action center.png (2.86 KiB) Viewed 1247 times
Input picture
Input picture
2016-07-07 08_23_26-Action center.png (11.37 KiB) Viewed 1247 times
Output picture
Output picture
2016-07-07 08_23_00-Settings.png (6.71 KiB) Viewed 1247 times
User avatar
xnview
Author of XnView
Posts: 43326
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Filesize changes whereas there is no change to the pictu

Post by xnview »

In batch convert file are always resaved, resize action is not always executed...
Pierre.
CheeseDurger
Posts: 3
Joined: Thu Jul 07, 2016 6:09 am

Re: Filesize changes whereas there is no change to the pictu

Post by CheeseDurger »

xnview wrote:In batch convert file are always resaved, resize action is not always executed...
Thanks for your answer. However, why would filesize change (up or down) if resize isn't executed ? Is image quality still the same ?
User avatar
xnview
Author of XnView
Posts: 43326
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Filesize changes whereas there is no change to the pictu

Post by xnview »

perhaps the compression mode for png is not the same
Pierre.
CheeseDurger
Posts: 3
Joined: Thu Jul 07, 2016 6:09 am

Re: Filesize changes whereas there is no change to the pictu

Post by CheeseDurger »

Ok.

I did a little test with the 2 PNGs (the original one and the one that got copied with XnConvert). I converted them to BMP with XnView then I did an hex comparison of the 2 image files. The BMP were exactly the same at the hex level. So I guess you're right and, for PNGs, it's just a matter of compression.

However, what about JPEG ? I did the same test, and the BMPs were different at the hex level.
Have you another wild guess for that ?
User avatar
xnview
Author of XnView
Posts: 43326
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Filesize changes whereas there is no change to the pictu

Post by xnview »

CheeseDurger wrote: However, what about JPEG ? I did the same test, and the BMPs were different at the hex level.
Have you another wild guess for that ?
PNG is lossless compression, jpeg is lossy compression
Pierre.
Post Reply