This is a discussion on loadpicfromjpeg and remote picture within the PHP Language forums, part of the PHP Programming Forums category; Is there a way to load a jpeg (loadpicturefromjpeg from gd library) from remote location? (I need to find out ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
You can try to save that pic into a temporary folder and then apply
the http://www.php.net/getimagesize( getimagesize function) which will return width, height, type and attributes of that image! Ovidiu http://www.DevPlug.com --Connecting Developers Posted from: http://www.devplug.com/ftopic24067.htm |
|
|||
|
Yes, but how to get the picture (via fopen?) Also there's a performance
issue, since I would have to get the picture once from server with pictures to server running script and then that same picture would be sent to browser. Any ideas? Best regards, Brko |
|
|||
|
Yes, you can use fopen to open that file and then write the content to
the one on server! But i think you may have another option, you can get the image height and width using javascript and this will resolve your server load, the image will be called directlly from the user browser from the other server, and with the javascript code you can get what you need! I found a good example of where you can start with the javascript: http://www.aspandjavascript.co.uk/ja...dth_height.asp Ovidiu http://www.DevPlug.com --Connecting Developers Posted from: http://www.devplug.com/ftopic24067.htm |