imageMAGICK plugin Inverted Colors on file read
Brought to you by:
zmoelnig
pd-extended 64bit osx 10.7.3
When opening a file the Red channel and the Green channel were inverted.
FIX:
Line 54: GL_RGB
Line 60: "BGR"
...that fix took me half the day to figure out. anyway, i know i should be submitting a patch but im not too illiterate yet on the git systems and was failing quite miserably in my attempts to create a suitable patch....
m
Anonymous
the problem with that fix is, that we are potentially losing the alpha channel of the image, which is not so good.
yeah I am not sure what to say. I realize this is probably a larger problem. I just added the alpha channel and compiled only to get the same discoloration. the solution i presented seemed to be the only one that get adequate results.
for the 64 bit builds ive been looking at starting an native cocoa plugin for images but i would need some direction. I am not so sure how to utilize Objective-C code (in cocoa we would be using NSImage) in a C++ application. This could just be the easy better solution?
let me know what you need for me to work all this out....
m
fixed with [ddb94f]
Related
Commit: [ddb94f]