Error exporting into Jpeg format - error code 7

Discussions on GFL SDK, the graphic library for reading and writing graphic files

Moderators: XnTriq, xnview

gorby

Error exporting into Jpeg format - error code 7

Post by gorby »

Hi there,

I have an error message saving into Jpeg format. Other formats are ok.
In another project I have no problem, but in my last one - no success. The error code is 7 and the message is "Not converted: Can't save this bitmap in this format !". I use it from Delphi if it makes any difference.

What's wrong?

Thank you in advance!

Alex
gorby

more information

Post by gorby »

I found that not every image produces error message. I guess that there are some limitations to store pictures in Jpeg format. Does somebody know any?

TIA,
Alex
User avatar
xnview
Author of XnView
Posts: 36409
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: error exporting into Jpeg format - error code 7

Post by xnview »

Hi,
gorby wrote:I have an error message saving into Jpeg format. Other formats are ok.
In another project I have no problem, but in my last one - no success. The error code is 7 and the message is "Not converted: Can't save this bitmap in this format !". I use it from Delphi if it makes any difference.
What's wrong?
Yes, JPEG can only save picture in grey or RGB mode. If you have a picture with colormap, you must convert it in RGB.
I have added a new flag in the next release.
Regards. Pierre.