I want to get a transparent background or no background for my images. I tried the '-background none' option and also the 'transparent' option, but the background image remains white. How can I achieve this?
Please suggest.
If you are using Imagemagik then the command is:
convert input.gif -transparent white output.gif
However, it will only work with a pure white background and not a shade of white.
There are alternative and easier ways to do this with IrfanView or The Gimp or Photoshop (more on that below).
This article mentions that you may be using convert.exe that comes with Windows rather than ImageMagicks Convert.exe in which case you should use the full path for Convert.exe.
http://www.imagemagick.org/discourse-server/viewtopic.php?f=1&t=10665
If you are trying to achieve this from CSS then you misunderstand the CSS property.
The css property 'background' refers to an html elements background color. I.e. <p> <div> <body> whatever.
more here http://www.w3schools.com/css/css_background.asp
If you are referring to the image opacity property, that refers to how "see-through" an image should be. more here:
http://www.w3schools.com/Css/css_image_transparency.asp
The only way to get a transparent background in an image is to make the background of the image transparent using either the PNG (preferred) or GIF formats. For this you can use IrfanView and save a picture as PNG, select the "save transparency" property and select the color from the image you want to be transparent or you can use Photoshop or The Gimp do the same. Example for IrfanView here http://llizard.etherwork.net/cwc/transp_irfanview.html
The Gimp example here http://aplawrence.com/Linux/crousegif.html
whats the format of your images? Try using png format
Related
I want to merge the color of one picture in other picture. As the picture below is showing. I paste a picture on circle. But there is a clear distinction between the two pictures. I want to get rid of it. Is it possible?
You have a couple options:
1: You could make a Clipping Mask, use the pen tool and trace the object, once you have drawn a line around what you what removed from the background select your outline and your image. goto top menu item Object > Clipping Mask > Make. This will clip your image and hide the background.
2: The image your are using my be tough for step one. Try re-exporting the image as a PNG or GIF with a transparent background then open it in illustrator. You will need to either "open" from within ai or "open with" ai. Copy/paste will not keep the transparency depending on the tools you are using.
My guess is step two will be your easiest solution because of the shadow elements. Good luck!
-Added Edit-
3: Open the original image file and change the background hex value to match the final desired background. This solution is less valuable because you won't have the ability to edit or change your mind about the color while your working.
I have to put an image (.png) into a pdf file using LibHaru. The image has a transparent background due to which it looks quite awkward (black background) into the pdf file.
How can I put this image (with transparent background) properly using C++ LibHaru?
You need to split your PNG file into two images: one for color pixels and another one for opacity values. Then you need to add the color image into PDF with specifying the second as SMASK property.
See 4.8.4 Image Dictionaries in PDF specification for more details.
You can use HPDF_Image_AddSMask method for this.
I have been trying to save for web from a psd file, The .PNG file that I get has no transparency and instead all transparent area is filled with white.
I am beginner in Photoshop, How can I accomplish this task?
Normally if you are doing save for web in png 8 format it will take white color instead of transparency to avoid this white color You have to do save for web as png 24 format then u will get transparency without white color
The Problem got Solved, the App/program i was using had some problem and was not showing the background to be transparent, have tried it on another program and its OK
Thanks to Anthony who helped alot.
ImageJ: What is the best way to add watermark to image?
I use two images the original image and the watermark image. The problem (in watermark image)is that I cannot change the opacity of the text without changing the opacity of the background. Note: the background transparency is 100% if I did not change opacity of the text
My recommendation is to use this tool: http://www.paintshoppro.com/en/pages/watermark-photos/ to add watermark to your photos, because sometimes watermarks can make your photos safer, but they can also be very easily removed, so your back to where you started. if you do it with that tool and make a transparent watermark, it wouldn't disturb the concept of the photo, but would also be much harder to remove.
I've been working on some custom graphics controls, and I found this weird problem with windows 7 rendering my button controls. I've used Photoshop to delete the pixels in the background all around the button image I'm using, then saved it as a GIF, and imported it into VS to use as the background image of my button. When windows XP renders it, it is fine, but when windows 7 renders it, all 4 corners have an odd white border around them.
You can barely see them in this pic, but they are much more apparent when looking at them on the client PC's.
Is there something wrong with the way I am transfering the image? should I not use a gif? is there something wrong with the way I am displaying it on the button? What can I do about it?
GIF was a bad choice, it can only render images with 256 colors. You need all the colors you can get to make the anti-aliasing work properly. Use PNG.
You will also need to make sure that the background color of the container is the same as the one you used in Photoshop, the anti-aliasing pixels will otherwise have the wrong colors. And you cannot stretch the image, that will also stretch the anti-aliasing pixels, ruining the effect.