Page 1 of 1

Problem with GIF images and image background color

Posted: Wed Apr 22, 2015 2:49 pm
by gagala
Take a GIF image and open it, setting (Edit, Background color...) is unchanged (RGB: 255,255,255 = white), now mark a field per mouse and press DEL. The deleted field appears in black instead in white.
This doesn't appear on JPG or PNG images.
Weird is that this doesn't happen with every GIF image. Seems the GIF version (87a, 89a) doesn't matter. I can't find out what the difference is that makes the most work false.


XnViewMP
Version 0.72 x32 (Dec 19 2014)

Distributor ID: ManjaroLinux
Release: 0.8.12
Codename: Ascella

P.S.
I've tried several small images to upload as attachment, but the server tell me, that the pic cannot be displayed, because it contains errors. So I added a screenshot. No clue, what kind of error is meant, but except the mentioned problem I never had trouble with my GIF images.

Re: Problem with GIF images and image background color

Posted: Thu Apr 23, 2015 2:42 pm
by xnview
i think that it's caused by colormap, please post the gif

Re: Problem with GIF images and image background color

Posted: Thu Apr 23, 2015 3:16 pm
by cday
xnview wrote:i think that it's caused by colormap, please post the gif
gagala wrote:I've tried several small images to upload as attachment, but the server tell me, that the pic cannot be displayed, because it contains errors.
You should be able to upload more or less any file in a ZIP attachment...

Re: Problem with GIF images and image background color

Posted: Thu Apr 23, 2015 11:30 pm
by XnTriq
This seems to be the same bug as in XnView Classic: “XnView kills GIF images in VM
gagala wrote:I've tried several small images to upload as attachment, but the server tell me, that the pic cannot be displayed, because it contains errors. So I added a screenshot. No clue, what kind of error is meant, but except the mentioned problem I never had trouble with my GIF images.
sample.gif is corrupted. Could you please compress the original/unedited/uncropped image and upload the archive, gagala?

Re: Problem with GIF images and image background color

Posted: Fri Apr 24, 2015 6:04 am
by gagala
Added the sample file as 7zip file.
Maybe I should mention, that all my gif files once have been jpg files, cropped and converted by XnView classic, but many versions ago.

Re: Problem with GIF images and image background color

Posted: Mon Apr 27, 2015 12:45 am
by XnTriq
gagala wrote:Added the sample file as 7zip file.
Thanks.

@Pierre: Have you found the cause for this bug?
  1. Open app-xnview-512.png with XnView.
  2. Go to Image » Convert to Grey » 8 Grey scale.
  3. Select a random area in the image and go to Edit » Clear.
  4. Save the result as app-xnview-512.gif.

Re: Problem with GIF images and image background color

Posted: Mon Apr 27, 2015 8:38 am
by xnview
XnTriq wrote: @Pierre: Have you found the cause for this bug?
yes :)