![]() It is thus the prefered way of removing image transparency. This operation is simple and fast, and does the job without needing any extra memory use, or other side effects that may be associated with alternative transparency removal techniques. using the -background color of your choosing. I have been trying to prepare a new post but my attachments uploaded to the forum keep vanishing from the draft for an unexplained reason.The Alpha Remove section of the ImageMagick Usage Guide suggests using the -alpha remove option, e.g.: convert in.png -background white -alpha remove out.png I have confirmed that NConvert does NOT write text to the above transparent image.png, no need to add a watermark, whereas XnConvert does. If the issue can in fact be reproduced with just a transparent source image, without applying the watermark, you may as well reduce the issue to that and post just what is needed. Then Pierre should be able to easily reproduce the issue and investigate any confirmed bug. I suggest you post new image and watermark test files, with those names, and in a ZIP to ensure that they cannot possibly be modified in any way when uploaded, together with your XnConvert result and your minimal NConvert code. ![]() XnConvert produces the expected result, NConvert does not. I think the way forward is to keep the issue as simple as possible: This continues to be very confusing, with your results using the same source files in some respects seeming different to my results. I don't think so, at least not the way you need. Pcguy221 wrote: ↑ Fri 2:37 amCan XnConvert be run in command line? Im not really sure where to go from here without getting too far from the manual. can I make a opaque 1 color image transparent in nconvert and write to that result? What if the text has a opaque backing then. Impractical compared to the ease of this task in xnconvert, but is that what it would take? XNconverts text is might clean looking and nothing like the color keyed text I have seen also. Is it possible to generate some sort of negative mask of the text where transparency is only at the rasterized text for a perfect fit? And then use that overtop any solid color opaque background to make your own transparent images. I tried to write text over the faint result image, hoping the darkness of the text would build up after 4 layers to 100% but it didn't. I can write to a semi-transparent background, but its matching transparency make it unusable. So the same problem still but a bit different. And it changes the transparency of the watermark. But its transparency matches the background. And text DOES write to it with the watermark and without. And like you, XNconvert handles fully transparent starting files perfectly in my experience. Im not sure if this is a bug or a known limitation. Strange how the text doesn't provide its own (pixel to pixel opaque & transparent ) backing adjusted only by text transparency. Not on the fully trapsparent pixels, but only where the watermark and its shadow were. I used the files you provided and this time the words were partially written over top the watermark. It does look like a possible NConvert bug, and reducing the issue to the minimum required to reproduce it could help motivate Pierre, or anyone else, to investigate it. In passing and probably not relevant, I notice that XnConvert has a text opacity value, and I don't see a way of setting that in the NConvert help file? You to some extent also present the issue as two problems but writing text on the transparent source image is likely the real problem, isn't it? O Reduce your code to the absolute minimum terms required to illustrate the problem, remembering that arguments will normally have default values, and you probably don't need to rotate the text, for example, to reproduce the issue. O Upload a simple test watermark file watermark.png O Upload a simple test image transparency.png I don't have much experience with transparency, and XnTriq who is the expert doesn't normally post on NConvert issues and in any case hasn't been posting much recently, so while waiting for Pierre to respond, if he does, it might help if you could: But I really wish for nconvert to be the tool. ** I wanted to add that these same source files and tasks do work in xnconvert, that do not work in nconvert. I also tried maybe 20 variants of different transparency settings in nconvert. I also tried green gif and setting green as transparent before the rest and that didnt work either - although I prefer PNG with alpha anyway. I also tried changing the order of commands. I also tried to fix the image in RIOT image optimizer. I tried 5 pr 6 different PNG formats from photoshop using various export methods and settings. Any ideas would be great! I have tried to fix this longer than I would like to acknowledge.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |