![]() |
ImageCreateFromPNG through attachment.php issue
I am trying to alter some images which are located in my attachments dir and pulled out by the 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/att...stc=1&fromvw=1 is there a way to "force" it as PNG? or any other solution for this? |
You can only use a url for that function if fopen_wrappers has been enabled (as the "Tip" on this page mentions). Could that be the problem?
|
I actually figured it out.
With the mod i pull attachment images onto a google map which seem to work fine. But for testing purposes i created a file that was outside the vbulletin framework. so when you call ImageCreateFromPNG with the attachment url.. that page is not logged in, even if you might be logged in.. so the ImageCreateFromPNG was getting a html page (login screen) instead of a png. there are two solutions: open attachments vor guests or make sure it is in the framework. thanks for the reply though |
All times are GMT. The time now is 11:43 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|