I am trying to alter some images which are located in my attachments dir and pulled out by an attachment script. something like:
/attachment.php?attachmentid=543&d=1319371426&stc=1&fromvw=1
somehow the ImageCreateFromPNG doesnt want to recognize these links as a valid PNG
but when inspecting the image it IS valid..
for example: http://www.birthright.net/forums/attachment.php?attachmentid=543&d=1319371426&stc=1&fromvw=1
is there a way to “force” it as PNG? or any other solution for this?
That URL requires you to login first, that would require the server to authenticate with the vBulletin forums that Brightright uses and then you could receive the image. You could always do a CURL post to simulate a login using all the variables that the login form uses on that page. Then after you are logged in, you could get the image.
You are currently receiving HTML content of the login page, hence the “invalid” PNG!