PHP4.3.2, GD2 - I have found to my great dismay and consternation that if I
load a jpg image [imagecreatefrom jpg(...)], then save it as a PNG, the
resulting PNG will actually work in a browser, but it can't be loaded again
by imagecreatefrom png(...), and if I try to open it with a graphics program,
like Paint Shop Pro, it tells me that it is no a legitament PNG file and
refuses to load it.
Likewise, if I start with a legit PNG (works with PSP), and save as a jpg,
the jpg will work in a browser, but can't be loaded again with
imagecreatefrom jpg() or with PSP.
I was under the impression I could load from one type and save as another
type as long as I didn't try to do something stupid like go from a truecolor
image to a palette-based image, or vice-versa.
Do I have to give up on change types this way???
-dg
load a jpg image [imagecreatefrom jpg(...)], then save it as a PNG, the
resulting PNG will actually work in a browser, but it can't be loaded again
by imagecreatefrom png(...), and if I try to open it with a graphics program,
like Paint Shop Pro, it tells me that it is no a legitament PNG file and
refuses to load it.
Likewise, if I start with a legit PNG (works with PSP), and save as a jpg,
the jpg will work in a browser, but can't be loaded again with
imagecreatefrom jpg() or with PSP.
I was under the impression I could load from one type and save as another
type as long as I didn't try to do something stupid like go from a truecolor
image to a palette-based image, or vice-versa.
Do I have to give up on change types this way???
-dg
Comment