loadpicfromjpeg and remote picture

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • B.r.K.o.N.j.A.

    loadpicfromjpeg and remote picture

    Is there a way to load a jpeg (loadpicturefro mjpeg from gd library) from
    remote location? (I need to find out the height and width of a picture that
    is residing on another server...)

    Best regards,

    Brko


  • rovisoft

    #2
    re:loadpicfromj peg and remote picture

    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

    Comment

    • B.r.K.o.N.j.A.

      #3
      Re: re:loadpicfromj peg and remote picture

      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


      Comment

      • rovisoft

        #4
        re:loadpicfromj peg and remote picture

        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:


        Ovidiu

        http://www.DevPlug.com --Connecting Developers
        Posted from: http://www.devplug.com/ftopic24067.htm

        Comment

        • B.r.K.o.N.j.A.

          #5
          Re: re:loadpicfromj peg and remote picture

          Thank you very much, I think that this is THE solution.

          Best regards,

          Brko


          Comment

          Working...