in reply to Windows screengrab with GD

Hi :)

Thank you for this great tool, I use it very often. But I found very strange issue, while using it.

On some images it replace white color with black. I was trying to understand reason by myself, but I can't.

I found such image and make crop from it. To reproduce an issue open original image in any viewer and make screenshot of it.

Both images here (will be there for 1 week): http://dropmefiles.com/KOAgy

Thanks in advance for any help!

Replies are listed 'Best First'.
Re^2: Windows screengrab with GD
by BrowserUk (Patriarch) on Dec 30, 2014 at 00:33 UTC
    To reproduce an issue open original image in any viewer and make screenshot of it. Both images here (will be there for 1 week): http://dropmefiles.com/KOAgy

    Hm. I followed that link and all I saw were two completely unrelated images; A & B.

    Of course, I followed your link with JS disabled, and from a quick peek at the source, the page is heavy with JS -- so that might be the reason -- but, I'm no mug.

    If you want the issue addressed; post a direct (non-redirected, non-JS dependant) link to the two images and I might try to reproduce the problem.


    With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.
Re^2: Windows screengrab with GD
by BrowserUk (Patriarch) on Dec 30, 2014 at 11:22 UTC

    Okay. I've tried the before image you posted and a bunch of other jpgs, pngs and gifs and I cannot reproduce the problem here.

    The only possibility that comes to mind is that the original image was an 8-bit color image and the process of converting that, first to a 24-bpp MS bitmap, and then to 24-bpp PNG might have introduced some artifacts.

    Unless the original image is available, in its original form, on the net somewhere, I cannot see any way to progress this?


    With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.
      Thank you!

      Well, I posted crop because I have exactly same issue with it as with full image (that's how I got second image from my sample). Also I download uploaded crop image before posting it here and compared it with my to make sure hosting site not altered it.

      So, if you can't reproduce that issue - you will not able to reproduce it with full one as well or with any other images I had. That helped me a lot. Looks like it's something with my Perl/GD or maybe Aero theme.

      Thank you very much and sorry for disturb. :)

      I temporary use workaround, by replacing Perl conversation with bmp2png tool. If I'll found reason for my issue, I'll post an update.

        or maybe Aero theme.

        That is a distinct possibility.

        In the end, there are so many layers of pre-interpretation of the image being done, before I get my hands on the post-interpreted bitmap; even if I knew exactly which layer was the cause of the problem, there'd be little I could do about it :(


        With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
        Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
        "Science is about questioning the status quo. Questioning authority".
        In the absence of evidence, opinion is indistinguishable from prejudice.
Re^2: Windows screengrab with GD
by Anonymous Monk on Dec 30, 2014 at 01:42 UTC
    Sure, tyvm!

    I planned to post version info, but was unsure if that will be helpful, since issue very specific:

    Windows 7 (x32): Microsoft Windows Version 6.1.7601

    GD: 2.53

    Strawberry Perl:

    Summary of my perl5 (revision 5 version 20 subversion 0) configuration:

    Platform:

    osname=MSWin32, osvers=6.2, archname=MSWin32-x86-multi-thread-64int

    uname='Win32 strawberry-perl 5.20.0.1 #1 Fri May 30 23:25:11 2014 i386'