I suggest you..

php api

<?php
if( ! class_exists('imagesWeServApi'))
{
/**
* images.weserv.nl API
*/
class imagesWeServApi
{
/**
* Request image
*
* @param string $url link to image
* @return string
*/
public static function request($url)
{
return preg_replace('/^((https?:)?\/\/)(.+)/i', 'https://images.weserv.nl/?url=\\3', $url);
}
}
}

// demo:
imagesWeServApi::request('http://wpdemo.web-dorado.com/wp-content/uploads/photo-gallery/photo%20gallery%20demo/17.jpg');

1 vote
Sign in
Check!
(thinking…)
Reset
or sign in with
  • facebook
  • google
    Password icon
    I agree to the terms of service
    Signed in as (Sign out)

    We’ll send you updates on this idea

    Anonymous shared this idea  ·   ·  Admin →

    3 comments

    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      I agree to the terms of service
      Signed in as (Sign out)
      Submitting...

      Feedback and Knowledge Base