Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Filling with white gets... purple???
#1
Hi folks. I need to switch my transparent GIF to a JPG to properly use in Kindle Create. I successfully used the process of creating a new layer filled with White for another graphic, but this one is giving me a Purple instead of White, even when I use the Fill Bucket. I'd love advice as to why this may be happening.

The files are here: https://we.tl/t-O7F5H6hw0K (uploading here resulted in a notice even one was too big)
Reply
#2
(09-02-2024, 04:53 PM)PelesDaughter Wrote: Hi folks. I need to switch my transparent GIF to a JPG to properly use in Kindle Create. I successfully used the process of creating a new layer filled with White for another graphic, but this one is giving me a Purple instead of White, even when I use the Fill Bucket. I'd love advice as to why this may be happening.

The files are here: https://we.tl/t-O7F5H6hw0K (uploading here resulted in a notice even one was too big)

Your gif is in indexed color, that's why you got a problem to color
Go to the top menu Image > Mode > RGB and your color problem will vanish Wink
Patrice
Reply
#3
(09-02-2024, 04:53 PM)PelesDaughter Wrote: Hi folks. I need to switch my transparent GIF to a JPG to properly use in Kindle Create. I successfully used the process of creating a new layer filled with White for another graphic, but this one is giving me a Purple instead of White, even when I use the Fill Bucket. I'd love advice as to why this may be happening.

Giving a bit more information as to why, it is worth knowing. 

As previous post, the image is in indexed mode (1) You can show the available colors using Windows -> Dockable Dialogues -> Colormap. (2) There is no white in your image colormap, the closest from the colormap is used. So change the color mode to RGB where there are 16,777,216 colors available. That is what the jpg format uses.

   

Once in RGB mode (4) make sure the background (BG) color is White. (5) Any other color will be used to replace the transparency. Then

(i) Layer -> Transparency -> Remove Alpha Channel replaces the transparency with the BG color. (6) That is what it will look like when you Export as a jpeg image (or other formats are available)
(ii) For a jpeg export even that is not necessary, Jpeg does not support transparency and will perform remove alpha for you using the BG color....but of course you do not get to see the result until you open the jpeg.

   

edit: I might as well add this as it might be useful
you wrote..I successfully used the process of creating a new layer filled with White for another graphic
If you mix graphic modes there is "coercion"

Make a white image (layer) in RGB mode, then import an Indexed image, File -> Open as Layers, and the Indexed image is converted to RGB mode.

The same happens in the other direction. Start with your Indexed image and add a (white or otherwise) RGB layer with File -> Open as Layers and the result is an Indexed image with the colormap imposed. That usually results in the colors of the RGB layer changing.
Reply
#4
If you are using layer modes some will give you a purple result too.
Vivid light, HSV Hue, HSL Color and LCH Hue do

Smile
Reply
#5
(09-02-2024, 05:43 PM)PixLab Wrote: Your gif is in indexed color, that's why you got a problem to color
Go to the top menu Image > Mode > RGB and your color problem will vanish Wink

Perfect. Thanks so much!

(09-02-2024, 05:57 PM)rich2005 Wrote: Giving a bit more information as to why, it is worth knowing. 

As previous post, the image is in indexed mode (1) You can show the available colors using Windows -> Dockable Dialogues -> Colormap. (2) There is no white in your image colormap, the closest from the colormap is used. So change the color mode to RGB where there are 16,777,216 colors available. That is what the jpg format uses.



Once in RGB mode (4) make sure the background (BG) color is White. (5) Any other color will be used to replace the transparency. Then

(i) Layer -> Transparency -> Remove Alpha Channel replaces the transparency with the BG color. (6) That is what it will look like when you Export as a jpeg image (or other formats are available)
(ii) For a jpeg export even that is not necessary, Jpeg does not support transparency and will perform remove alpha for you using the BG color....but of course you do not get to see the result until you open the jpeg.



edit: I might as well add this as it might be useful
you wrote..I successfully used the process of creating a new layer filled with White for another graphic
If you mix graphic modes there is "coercion"

Make a white image (layer) in RGB mode, then import an Indexed image, File -> Open as Layers, and the Indexed image is converted to RGB mode.

The same happens in the other direction. Start with your Indexed image and add a (white or otherwise) RGB layer with File -> Open as Layers and the result is an Indexed image with the colormap imposed. That usually results in the colors of the RGB layer changing.

This is all very informative and I really appreciate you filling me in. Thank you.

(09-03-2024, 02:44 AM)sallyanne Wrote: If you are using layer modes some will give you a purple result too.
Vivid light, HSV Hue, HSL Color and LCH Hue do

Very interesting! I didn't even know those options existed. Something to look into later Smile Thank you.
Reply
#6
Also. Check that your white? is really white. Don't go by what 'looks' white but put in the letters ffffff and you know it will be white then. I wondered why my white background was always pink once and found out it was because I was picking the near white in the red colour box.

Smile
Reply


Forum Jump: