• Welcome to Vampyre Imaging Library Forum. Please login or sign up.
 

Saving GIF file loses transparency

Started by dezlov, 23 January 2014, 12:02:54

Previous topic - Next topic

dezlov

23 January 2014, 12:02:54 Last Edit: 23 January 2014, 12:04:59 by dezlov
When GIF files are saved the transparency information is lost, it is replaced by some determined color (always the same for the same image but can differ between images). This seems to affect all GIF images: I tried on my files, files from internet and "Tigers.gif" that comes with the library.

Code (pascal) Select

procedure TestGIF;
var
  GIF: ImagingComponents.TImagingGIF;
begin
  GIF := ImagingComponents.TImagingGIF.Create;
  try
    GIF.LoadFromFile('Tigers.gif');
    GIF.SaveToFile('Tigers-COPY.gif');
  finally
    GIF.Free;
  end;
end; 


All other file formats were disabled by relevant switches in "ImagingOptions.inc".

Vampyre Imaging Library: 0.26.4 and last committed version [0ed5a8]
Lazarus: 1.0.12 r42478
FPC: 2.6.2 i386-win32-win32/win64
OS: Windows 7 64-bit

Quick Reply

With Quick-Reply you can write a post when viewing a topic without loading a new page. You can still use bulletin board code and smileys as you would in a normal post.

Name:
Email:

Shortcuts: ALT+S save/post or ALT+P preview

SMF spam blocked by CleanTalk