Incorrect GIF produced by Aspose BarCode

Hi,

the attached QR code in GIF format has been produced by Aspose BarCode.

The byte at position 0xB is the background color index. Since the byte at position 0xA indicates the presence of a global color table, the background color index must be valid. However, the global color table only has 2 entries (6 bytes) while the background color index is 0xFF, which is plainly out of range.

Please either eliminate the global color table altogether or ensure that the background color index is correct.

Regards
Mario

Hi Mario,


Thank you for contacting support. Are you using the latest version of Aspose.BarCode for Java 6.8.0? If so, then please provide us your sample code. Otherwise, please use the latest version 6.8.0 and let us know how it goes on your side. It’ll help us to be more specific. We’ll take a closer look and reply you accordingly.

Hi Imran,

I’m on 6.8.0.

I don’t understand why you need the code that produces the barcode. The error is in the .gif format, not in the barcode, so it has nothing to do with how I generate the barcode but on the part of the library that produces the .gif. Anyway, here it is:

public static void main(String[] args) throws Exception {
License license = new License();
license.setLicense(“path to licence”);
BarCodeBuilder b = new BarCodeBuilder();
b.setSymbologyType(Symbology.QR);
b.setQREncodeMode(QREncodeMode.Auto);
b.setQRErrorLevel(QRErrorLevel.LevelH);
b.setCodeLocation(CodeLocation.None);
b.setGraphicsUnit(GraphicsUnit.Pixel);
b.setMargins(new MarginsF(1, 1, 1, 1));
b.setCodeText(“0123456789”);
FileOutputStream os = new FileOutputStream(“path for result”);
b.save(os, BarCodeImageFormat.Gif);
}

Regards
Mario

Hi Mario,


Thank you for providing us this sample code. It helps to reproduce the problem on our side. It’ll also help our product team to be remained in specific area. We have logged an investigation under ticket id BARCODJAVA-33519 in our issue tracking system. Your post has also been linked to this issue. We’ll let you know once a significant progress has been made in this regard. We’re sorry for the inconvenience caused.

Hi Mario,


Thank you for being patient. We have a good news for you that the issue id BARCODJAVA-33519 has now been resolved. If there is no issue in the QA phase, then this fix will be included in the next version of Aspose.BarCode for Java 7.1.0. We’ll inform you via this forum thread as soon as the new release is published.

The issues you have found earlier (filed as BARCODJAVA-33519) have been fixed in Aspose.BarCode for Java 7.1.0.


This message was posted using Notification2Forum from Downloads module by Aspose Notifier.

Hi Imran,

thanks for fixing the issue!

Have a nice weekend
Mario

The issues you have found earlier (filed as ) have been fixed in this update. This message was posted using BugNotificationTool from Downloads module by MuzammilKhan