Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

ImageSharpen & Black Border

Explorer ,
Nov 02, 2009 Nov 02, 2009

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?

1.6K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Valorous Hero , Nov 03, 2009 Nov 03, 2009

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

...
Translate
Valorous Hero ,
Nov 02, 2009 Nov 02, 2009

Can you post a screen shot of the result?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Nov 02, 2009 Nov 02, 2009

sharpeningScreenshot.jpg

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">

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Valorous Hero ,
Nov 02, 2009 Nov 02, 2009

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Nov 02, 2009 Nov 02, 2009

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Valorous Hero ,
Nov 03, 2009 Nov 03, 2009

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Valorous Hero ,
Nov 03, 2009 Nov 03, 2009
LATEST

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources