The checkbox when creating a new painter using the UI tools sets the 'merge' arg to '1', as check boxes normally do, when it's selected. This value is then passed as the last arg to imagecopymerge() on line 54 of imaging.module, resulting in a merge at 1% opacity.
I'm overlaying one image over another, and the top image winds up pretty much invisible. I've enabled merge so that alpha channel will work right. Both images are PNGs and the top image causes a bunch of weird transparent spots in the bottom if I don't do this.
I've fixed this by making the checkbox have a value of 100 instead of 1. Seems to make sense and work well. I'm attaching a .patch of my one liner fix. It's pretty simple. I hope it gets taken up for this project.
By the way... Looks like this project is kind of dormant? No releases in a year? I really like the way painter works more than the new imagecache stuff. Hope development doesn't stall on this. At least hope some of the features, especially the way the size image operation works with the 'image fit' radio selector, get ported over to imagecache.
thanks,
Paul
| Comment | File | Size | Author |
|---|---|---|---|
| painter-MERGEFIX.patch | 665 bytes | psuda |
Comments
Comment #1
Scheepers de Bruin commentedThanks for this!
The project is not dormant on purpose =)
Workload has grown exponentially, and I guess I need a comaintainer...
Comment #2
Scheepers de Bruin commented...especially someone that has gif animation experience ;)