I have svg image with transparent background (from inkscape, I have checked its transparency, I am 100% sure its transparent). When I add it to the website using , it automatically adds a white background, so it is no longer transparent. Does anyone know why?
Try opening the SVG file in Figma, if a white background appears remove it from the rest of the parts and save this edited one. Works all the time!
Related
I have some photos on my wordpress website and for example this cross in the circle gets a weird border around the image but only on some resolutions (e.g. width:1506). I tried inspecting the element and there is no CSS border in there. Somehow this border appears around many images for some reason at specific resolutions and I can't seem to find out why since there isn't any CSS stating that this border should appear.
Also looked in dev tools at Computed for this img and it says border:0; and I also set it 0 again myself but this still appears.
Any help would be appreciated!
Found the answer. I had a .webp image which was mostly transparent and a background was set to make it purple. On some resolutions that box appeared with the color of the background. The solution I took, was make the webp directly purple and saved it as a png and replace the old one.
I have removed the background of an image I am using in photoshop. Even when i export the image in flash theres no white background but everytime I add a motion tween to the image, the white background comes back so when I put it on my website you can see the white background.
Is there anyway to stop it from doing this
Firstly, ensure the image does not include a background. Saving as a PNG often helps importing into Flash.
Then ensure the following publishing settings:
Choose File > Publish Settings. Make sure that HTML is selected.
Select HTML.
Choose Transparent Windowless from the Window Mode menu to make the SWF file's background disappear in browsers that support this feature.
Publish the document.
https://helpx.adobe.com/animate/kb/transparent-background-swf-file.html
I have a GIF picture with transparency. When I place the picture in a regular HTML the transparency shows fine. But when I load the same picture as a logo in a PHP software, the picture doesn't show the transparency but a white background.
The only strange thing I find in the page on which I load the picture which doesn't show the transparency, it has a gradient color background in CSS. I don't know if it's related to the problem or not.
What reason could there be that the GIF shows the transparency in some pages and in other pages it doesn't? Whatever the reason is, what can I do to make it work where I need it?
what can I do to make it work where I need it?
I would use a .png instead a .gif as logo you will probably load it through css
(background: url(path/.png) no-repeat; , I know it does not answer the why but solves the issue for sure.
If a .png is too big in your opinion use the online great tool it uses even advanced lossy compression for PNG images and preserves full alpha transparency
I have an image that is sitting on top of a background. In Firefox and Chrome it looks fine as per below:
But in Internet Explorer (any version), it looks like the image background is a different shade than the background (I have put a red box to highlight where the image ends and the background begins, but it's pretty obvious).
How could it be that, given the same image and the same HTML background color, one browser looks fine but in Internet Explorer it looks like the colors are off as the background color of the image is a shade lighter than the HTML background?
The full website is here if that helps.
I think you have different image formats, and Internet Explorer got some image rendering problems. Try to put both of the images background and logo (back-page1.png, logo5.gif) in the same format either GIF or PNG (I prefer PNG) and it should do the trick!
Good luck :)
UPDATE:
So what is this render issue?
As tenfour said in comment, "assuming that the RGB color is really the same on both images, the underlying problem is that Photoshop saves gamma information in the PNG which causes Internet Explorer to render a different color than desired".
I think you need to remove the gamma information in the PNG. See http://morris-photographics.com/photoshop/articles/png-gamma.html for an explanation of this problem. I use http://www.choppng.com/ to remove this section from the PNG.
I have a website where the background has a light gradient (light gray from top to white on the bottom). When I place an image with a transparent background on the website, the background of the image picks the top color of the gradient. So instead of the image's background appearing to be a gradient as well and blending in with the site, the image's background color is just light gray.
I'm not sure if this is the way it's suppose to be (due to the way transparency works on websites). But I was wondering if anyone could provide a workaround
First of all welcome to StackOverflow :)
It depends. First of all, your website will be rendered differently on different browsers, and that's of vital importance to you, because unless you test it on different browsers, you can't be sure what some users will see.
If you've seen a partially transparent PNG that instead of transparency shows a grey background, chances are you're using Internet Explorer 6, a very old browser that you really shouldn't use. It's the one with the blue E, that E stands for Evil. Run.
On a more serious note, having a link to check would help, or a screenshot, because it's hard to tell just by guessing. PNGs should render fine against any background.