So it looks like the left half (more or less uneven division) is fully transparent, the right half is fully opaque and the middle line is partially transparent to make a smooth transition. To see this we can separate out the alpha channelĬonvert testomn.png -alpha extract testomn_alpha.png Thus it has varying shades of transparency from fully opaque to fully transparent. Fortunately, I accidentally clicked on the image and went to your png version. The image you provided inline is a jpg and therefore will not have transparency. I do not know how to bring the background color to the image (i already tried to draw a new image with that color and compose with the original one but this takes a huge amount of time because the image is not that small and additionally the color did not show up (it was all black instead) and the edges around the original image were really bad)Ĭan anybody help me? Maybe just how to do it with ImageMagick - hopefully I can adapt this to the JMagick API.įirst of all this is still not clear. I want do resize this image, cut a piece out of it and store that piece with a given background color as JPEG I got a PNG image including transparency (as far as I know transparency is not only 1 transparent color but also an area around the not transparent area which contains part transparency which will make the background shine through which makes a smooth edge) I am very new to image processing and I am using JMagick to do some simple image processing in Java.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |