Project

General

Profile

Bug #396

Load IFF distorts the images loaded. It also gets the background color wrong sometimes.

Added by Brian Flanagan almost 4 years ago. Updated over 3 years ago.

Status:
Resolved
Priority:
Normal
Target version:
Start date:
06/20/2020
Due date:
% Done:

0%

Estimated time:
8:00 h
Affected version:

Description

Whatever IFF decoder we're using in Load IFF stretches the IFF images horizontally, and results in an image with many artifacts, both horizontally and vertically. The attached image shows an accurate IFF graphic on the left (generated by Dalton Tulou's Quick Look plugin for macOS),
compared to that generated by AOZ's Load IFF on the right.

I would highly recommend replacing whatever decoder we're using now with Matthias Wiesmann's IFF decoder, since it seems to be the most comprehensive version so far: https://wiesmann.codiferes.net/wordpress/?page_id=17479 It's in JavaScript... under a GPL3 public license.

It works with standard Color Palette, EHB, IFF, ILBM, HAM (including HAM-6 and HAM-8), SHAM, and RGB24 images, including color cycling! From the examples on his website, it appears to be very accurate as well.


Files

Screen Shot 2020-06-20 at 10.11.05 AM.png (36.9 KB) Screen Shot 2020-06-20 at 10.11.05 AM.png Illustration of distortion Brian Flanagan, 06/20/2020 03:13 PM
Screen Shot 2020-06-20 at 10.24.58 AM.png (51.8 KB) Screen Shot 2020-06-20 at 10.24.58 AM.png Vertically, the images are the same height, but you can see the horizontal stretching and distortion. Brian Flanagan, 06/20/2020 03:26 PM
Screen Shot 2020-06-20 at 10.58.14 AM.png (69.7 KB) Screen Shot 2020-06-20 at 10.58.14 AM.png The distortion is even worse on this image, and you can see the incorrect background color. (It should be black.) Brian Flanagan, 06/20/2020 04:00 PM

Also available in: Atom PDF