Impose max size in bytes?

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

Moderators: XnTriq, xnview

Post Reply
Pgr

Impose max size in bytes?

Post by Pgr » Wed Apr 05, 2006 6:06 pm

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: 32704
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: Impose max size in bytes?

Post by xnview » Wed Apr 05, 2006 6:58 pm

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 » Thu Apr 06, 2006 1:52 pm

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.

Post Reply