Impose max size in bytes?

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

Moderators: XnTriq, helmut, xnview

Pgr

Impose max size in bytes?

Post by Pgr »

Hi,

I'm batch converting images to PNG format, non-interlaced, 8-bit color, and I have a requirement that images must be under 65505 bytes (after compression). In case a size reduction is necessary, I would want a resize to occur.

Is there any way to do this in NConvert? Or some sort of workaround, if it is too complicated?

Thanks in advance.
User avatar
xnview
Author of XnView
Posts: 44926
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: Impose max size in bytes?

Post by xnview »

Pgr wrote:Hi,

I'm batch converting images to PNG format, non-interlaced, 8-bit color, and I have a requirement that images must be under 65505 bytes (after compression). In case a size reduction is necessary, I would want a resize to occur.

Is there any way to do this in NConvert? Or some sort of workaround, if it is too complicated?
Currently there is nothing to do that...
Pierre.
Pgr

Post by Pgr »

Thanks for your answer.

Maybe this could be a nice enhancement for the 'resize' option: resize to a certain byte size.

The size limit is for images included in eReader ebooks. I suppose other occasions occur where size limits are a requirement.