Create Image From Url Any File Type

后端 未结 7 1650
无人及你
无人及你 2020-12-02 17:25

I know of imagecreatefromgif(), imagecreatefromjpeg(), and imagecreatefrompng() but is there a way to create an image resource (for png preferably) from a url of any

相关标签:
7条回答
  • 2020-12-02 18:11

    you analyse this code.

    $url=$_SERVER['REQUEST_URI'];
    $url=explode('.',$url);
    $extension=$url[1];
    switch($extension){
       case'jpg':
          imagecreatefromjpeg();
       break;
    }
    
    0 讨论(0)
提交回复
热议问题