Copy link to clipboard
Copied
Whenever I use the ImageSharpen function, it adds a black border around inside pixels—it works different than the "border" tag in that it doesn't add the border to the image dimensions, it overwrites all the pixels around the image.
How can I turn this off?
That seems to be a known issue with certain sharpening methods. I do not know if this was fixed in CF9. But for CF8 the work-around seems to be using a different method for sharpening.
A brief peek confirmed these popular image components seems to using java's ConvolveOp class as a work-around for the ImageSharpen issue
http://www.alagad.com/projects.imageComponent
http://www.opensourcecf.com/imagecfc/
http://imageutils.riaforge.org/
If you are interested, here is a good article explaining how shar
...Copy link to clipboard
Copied
Can you post a screen shot of the result?
Copy link to clipboard
Copied
And the code to get this result:
<cfset ImageSetAntialiasing(eventThumb,"on")>
<cfset ImageSharpen(eventThumb,2)>
<cfimage source="#eventThumb#" action="write" destination="#graphicPath#/thumbs/#fileName#" overwrite="yes">
Copy link to clipboard
Copied
Have you checked the hot fixes and updates? Are you current?
I have a vague memory that there were fixes geared toward unintended borders on images from the <cfimage...> tag. I don't remember enough of the details to know if it applies to your situation or not, but I'm sure the hot fixes pages would give you more details.
http://kb2.adobe.com/cps/402/kb402604.html
Copy link to clipboard
Copied
We have all the cumulative hotfixes installed and the newest hotfix to solve the image locking problem already. I couldn't find anything about borders in any of the cumulative hotfix explanations, but the documentation is a little thin on those, too.
Copy link to clipboard
Copied
That seems to be a known issue with certain sharpening methods. I do not know if this was fixed in CF9. But for CF8 the work-around seems to be using a different method for sharpening.
A brief peek confirmed these popular image components seems to using java's ConvolveOp class as a work-around for the ImageSharpen issue
http://www.alagad.com/projects.imageComponent
http://www.opensourcecf.com/imagecfc/
http://imageutils.riaforge.org/
If you are interested, here is a good article explaining how sharpening works with java's ConvolveOp class and how to avoid the black border issue. http://www.informit.com/articles/article.aspx?p=1013851&seqNum=5&rll=1
Copy link to clipboard
Copied
I confirmed this issue exists under CF9 as well. If you do not see this issue database already, I would submit it as a bug:
http://cfbugs.adobe.com/cfbugreport/flexbugui/cfbugtracker/main.html