I'm using GD2 and have found that whenever I try to use "Scale" for an item I can't use "Scale and Crop" for, the image created always has a 1x1 black pixel in the upper left corner of the derivative image. Has anyone else experienced this? Does anyone have a clue why it might be doing this?
While the black dot is very small, in a design with a plain white background, it stands out like a sore thumb!
Scale and Crop produces no aberrations and works as expected.
Original image and derivative with black dot in upper left corner attached.
Comments
Comment #1
digitalfrontiersmediaUpon closer examination, there also appears to be a 5x5 or so area surrounding the black dot in the upper left corner of derivative images that seems to have very, VERY faint dithering.
What could be the source? It happens on all derivative images I've done on the site using "Scale".
Comment #2
digitalfrontiersmediaActually, I discovered it DOES still happen when using "Scale and Crop", too.
No ideas? Anyone? Bueller?
Comment #3
garethsprice commentedFound this thread trying to solve the same issue with ImageCache 6.x-2.x-beta10.
Resolved by upgrading to 6.x-2.x-dev build.
Have not seen this on any other sites I've worked on. Strange...
Comment #4
digitalfrontiersmediaThanks, garethsprice! I thought I was the only one in the world going crazy with this problem! I will upgrade to dev and report if I get similar results.
Thanks again!
Comment #5
digitalfrontiersmediagarethsprice,
I swapped out beta10 for dev (2010-Jul-11), flushed presets, flushed Drupal cache tables, emptied browser cache, and still no love. The derivatives still show the black dot in the upper left corner. But it's inconsistent. In the attached image, you'll see that LifeSync, Mercedes-Benz, Mitchell, and Monaco all have the black dots in the upper left corner of their logos yet Medallion, Mooney, Parker, Polaris, and Segway do not. So whatever it is, it is not a blanket issue. Maybe it's a function of something in the images themselves along with the version of imagecache and/or the GD library?
I'm completely perplexed, and this is a major issue since the site is for a design firm and they are very, VERY picky. Telling them "I have no idea why it's doing it and I can't stop it" simply isn't going to fly. A bunch of black dots spread about haphazardly around their design simply will not do.
I am curious to know information about the file types you were using since it's strange that the problem cleared up for you by upgrading to dev.
Like you, I've never come across this issue before in any of my other site builds (even on the same server!), and I can see no difference in its construction. And of course it has to be with a graphically picky client.
Any help or information anyone can give would be greatly appreciated. If not cleared up by Florida DrupalCamp, expect to be hunted down and cornered for a BoF session, garethsprice! :-D
Thanks,
Stephen
Comment #6
digitalfrontiersmediaAfter deploying the site to a different server, this problem magically disappeared (the problem still exists on the DEV server).
Normally this would make me think it's a server issue (GD/PHP, etc.) except for the fact that garethsprice said it went away on same server by simply upgrading imagecache module. Perhaps it is some sort of combination of factors.
Comment #7
Jerome F commentedsame behaviour noticed with :
Drupal core 7.9
imagecache_actions 7.x-1.x-dev (2011-Oct-16)
GD library PNG support bundled (2.0.34 compatible)
The Scale effect produces this 1px black dot in the upper left corner.
I found no way to get rid of it yet and I've got no clues about how and why it's happening.
Comment #8
fizk commentedPlease reopen if this is still an issue with ImageCache 6.x-2.0-rc1.