Difficulties creating PNG pictures

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Yannick Turgeon

    Difficulties creating PNG pictures

    Hello all,

    I have a web page in which I create a simple PNG picture using PHP. It was
    correctly displayed until I upgrade my PC (Linux/Mandrake 9.1). Now my
    little picture is a black square!

    Anyone knows the reason?

    I've got those two png libraries installed. Does PHP need some more to
    adequatly create and manage PNG pictures?
    libpng3-devel 1.2.5-2mdk
    libpng3-static-devel Version : 1.2.5-2mdk

    TIA

    Yannick
  • Shawn Wilson

    #2
    Re: Difficulties creating PNG pictures

    Yannick Turgeon wrote:
    [color=blue]
    > I have a web page in which I create a simple PNG picture using PHP. It was
    > correctly displayed until I upgrade my PC (Linux/Mandrake 9.1). Now my
    > little picture is a black square!
    >
    > Anyone knows the reason?
    >
    > I've got those two png libraries installed. Does PHP need some more to
    > adequatly create and manage PNG pictures?
    > libpng3-devel 1.2.5-2mdk
    > libpng3-static-devel Version : 1.2.5-2mdk[/color]

    What version of GD are you using? Are you getting any errors? Could you post
    code snippets?

    Shawn
    --
    Shawn Wilson
    shawn@glassgian t.com



    Comment

    • Yannick Turgeon

      #3
      Re: Difficulties creating PNG pictures

      Shawn,

      Thanks to reply. After reading your message, I took a look at the code
      generating my picture. I was using the function "imagecopyresiz ed" and it
      seems that the result of this call was now a all black square. Don't know
      why. I changed the creation of my destination image from "imagecreat e" to
      "imagecreatetru ecolor" and it finally work fine. Don't know the initial
      cause but have found an solution.

      Yannick
      [color=blue]
      > Yannick Turgeon wrote:
      >[color=green]
      >> I have a web page in which I create a simple PNG picture using PHP. It
      >> was correctly displayed until I upgrade my PC (Linux/Mandrake 9.1). Now
      >> my little picture is a black square!
      >>
      >> Anyone knows the reason?
      >>
      >> I've got those two png libraries installed. Does PHP need some more to
      >> adequatly create and manage PNG pictures?
      >> libpng3-devel 1.2.5-2mdk
      >> libpng3-static-devel Version : 1.2.5-2mdk[/color]
      >
      > What version of GD are you using? Are you getting any errors? Could you
      > post code snippets?
      >
      > Shawn
      > --
      > Shawn Wilson
      > shawn@glassgian t.com
      > http://www.glassgiant.com[/color]

      Comment

      Working...