Images.weserv.nl - General

I suggest you..

You've used all your votes and won't be able to post a new idea, but you can still search and comment on existing ideas.

There are two ways to get more votes:

  • When an admin closes an idea you've voted on, you'll get your votes back from that idea.
  • You can remove your votes from an open idea you support.
  • To see ideas you have already voted on, select the "My feedback" filter and select "My open ideas".
(thinking…)

Enter your idea and we'll search to see if someone has already suggested it.

If a similar idea already exists, you can support and comment on it.

If it doesn't exist, you can post your idea so others can support it.

Enter your idea and we'll search to see if someone has already suggested it.

  1. Remove cached images (by API/manual)

    GIVEN:
    //------------------------------------------------------------------------
    image source (url parametre) is:

    maps.googleapis.com/maps/api/staticmap?sensor=false&size=2048x350&scale=2&maptype=roadmap&zoom=13&markers=color:blue|size:small|1400+Oakton+Street,+Evanston,+IL+60202

    encoded version:

    maps.googleapis.com%2Fmaps%2Fapi%2Fstaticmap%3Fsensor%3Dfalse%26size%3D2048x350%26scale%3D2%26maptype%3Droadmap%26zoom%3D13%26markers%3Dcolor%3Ablue%257Csize%3Asmall%257C1400%2BOakton%2BStreet%2C%2BEvanston%2C%2BIL%2B60202

    I'm using following images.weserv.nl parametres:

    &w=70&t=square&h=70

    final link:

    http://images.weserv.nl/?url=maps.googleapis.com%2Fmaps%2Fapi%2Fstaticmap%3Fsensor%3Dfalse%26size%3D2048x350%26scale%3D2%26maptype%3Droadmap%26zoom%3D13%26markers%3Dcolor%3Ablue%257Csize%3Asmall%257C1400%2BOakton%2BStreet%2C%2BEvanston%2C%2BIL%2B60202&w=70&t=square&h=70

    //----------------------------------------------------------------------------

    ISSUE:

    Some of the "google map images" cached properly, some of them is not (link provided above - final link)

    Looks like when caching process is broken by any internal reason, the "image url" is still remembered as a key in your collection. So there is no way to rebuild correct cache for that "broken" image.

    QUESTION:

    Is any api/way to expire/delete/rebuild/invalidate existing image cache?

    24 votes
    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)
      You have left! (?) (thinking…)
    • 1 vote
      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)
        You have left! (?) (thinking…)
      • 1 vote
        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)
          You have left! (?) (thinking…)
        • Support non-standard ports.

          Accessing sites which listen to a non-standard HTTP port.

          3 votes
          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)
            You have left! (?) (thinking…)
          • Add Content-Length header to allow for indeterminate progress.

            Would be awesome to add the Content-Length header to allow for progress to be calculated when downloading images. Guess this may only be possible when serving the image from cache.

            3 votes
            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)
              You have left! (?) (thinking…)
              1 comment  ·  Admin →
            • letterbox images that need to fit

              In the current implementation, if an image needs to fit a given w/h, and its original aspect ratio is not similar to the requested, either the resulting w or h will be less, to keep the aspect ratio. However, sometimes (e.g. in e-mails) it is required to have a constant w and h. The resulting "void" can be painted white. This is known as letterboxing.

              18 votes
              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)
                You have left! (?) (thinking…)
                1 comment  ·  Admin →
              • Background setting

                I've problems with transparent images. Could you please have a look?

                Image 1: https://images.weserv.nl/?url=www.briefklick.de%2Ffavicon.ico&w=64&h=64&t=square&output=gif

                Image 2: https://images.weserv.nl/?url=www.vavideo.de%2Ffavicon.ico&w=64&h=64&t=square&output=gif

                Now I set the output on gif. But the second image is not showing correctly.

                For testing:
                Image 1 is working with output in PNG only. Image 2 is working with output in GIF only.

                Please add an option how to handle transparent backgrounds. And / or to define the background color &bg=FFFFFF.

                Thanks!

                7 votes
                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)
                  You have left! (?) (thinking…)
                • 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
                  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)
                    You have left! (?) (thinking…)
                  • Add support for icon (.ico) files

                    This would be useful for shortcut icons, such as http://www.google.co.uk/favicon.ico

                    2 votes
                    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)
                      You have left! (?) (thinking…)
                      1 comment  ·  Admin →
                    • Add image filename in HTTP Header.

                      There are no file name in HTTP header.
                      This mean, when downloading image to "Save This Image", it's filename is default of browser.
                      But in mobile, it's file name likes 'download.bin'! It is not iamge extensions!

                      Please add image filename in http header for support mobile and old browser.

                      Thanks.

                      3 votes
                      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)
                        You have left! (?) (thinking…)
                      • 5 votes
                        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)
                          You have left! (?) (thinking…)
                          1 comment  ·  Admin →

                          I added (early) SVG support, it will output as PNG by default, example:

                          https://images.weserv.nl/?url=dev.w3.org/SVG/tools/svgweb/samples/svg-files/rg1024_green_grapes.svg&w=300

                          Commit:
                          https://github.com/andrieslouw/imagesweserv/commit/5bf30b236f721e86510d0e9c0cb1b5334cb182d0

                          SVG-images are vector based, and the proxy works with bitmaps only. We don’t proxy files bit-for-bit, instead, the first frame of every image get’s processed towards a bitmap, which we eventually recode into (for example) an JPEG-file.

                          I’m afraid a lot of the quality gets lost. I’m also not sure about the need for resizing if you already have vector based images.

                        • Are there any way to remove a pic from the cache manually?

                          I wrote a very simple photobook application which generates thumbnails using this service, but some of the images messed up for the first time, so I re uploaded them at the same name, but weserv still serve the old one due to cached, are there any way to update the cached one.

                          I've read that the server removes the pic within 14 days if not requested. since my server stores the thumbnails to, it wont request it anymore from here. So after 14 day it will update it anyway. I'm just wondering are there any way to force it to…

                          2 votes
                          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)
                            You have left! (?) (thinking…)
                            1 comment  ·  Admin →

                            Update:
                            This feature is planned, but it needs additional code to delete images from the different caches. Currently it isn’t exactly clear when this will be implemented. I will update this idea when I have more info.

                            Original answer:
                            It’s very hard to delete individual thumbnails; we don’t keep track of the individual url’s requested (or any other userdata).

                            Please try to use some differentiator in your url’s for future testing; caching is done at quite high level, so even using something like images.weserv.nl/?test=12345&url=… should work.

                            I hope this answers your question!

                          • Allow blur transformation (with radius parameter)

                            CSS3 "filter: blur(px)" has a tendency to slow down the entire page.
                            As a workaround I use the javascript StackBlur library but it would really be a nice feature to delegate that to an images server with proper caching.

                            6 votes
                            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)
                              You have left! (?) (thinking…)
                            • Wider image format support

                              In an effort to support more image formats (such as TIFF, WEBP, PDF-thumbnails, etc), we're testing with delegating some file-formats to a new library. Please be advised that we're "officially" only supporting GIF, JPEG, PNG and BMP files.

                              All non GIF/JPEG-files are internally converted to PNG-files, and outputted as such.

                              4 votes
                              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)
                                You have left! (?) (thinking…)
                                started  ·  0 comments  ·  Admin →
                              • support webp format

                                we need webp support as google started to implement this on blogspot

                                2 votes
                                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)
                                  You have left! (?) (thinking…)
                                • Format conversion

                                  As I strictly need progressive jpg images, without knowing input format, please add format conversion.
                                  Parameter &of=png, default to input format if not set.

                                  Please note I only need png2jpg.

                                  Thank you and congrats for this wonderful service!

                                  1 vote
                                  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)
                                    You have left! (?) (thinking…)
                                  • disable auto grow when using t=square

                                    Hi,
                                    i use your service and it's a great one.

                                    i use t=square, the problem for me is that if the image is smaller than the W and H parameters - the image is enlarged to fit these parameters. i will really appreciate if you make it possible to control this by sending additional parameter that will control this behavior and if the image is smaller- just serve the image as is.

                                    idanb11,

                                    1 vote
                                    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)
                                      You have left! (?) (thinking…)
                                      1 comment  ·  Admin →
                                    • Return default image if the image's URL not found

                                      Let say if the image from hosting was removed but the image's URL is still in the database, then it will not load the image as the 404 error happens. My idea is, to replace the 404 error with default image so that we will never see the broken image on our website.

                                      12 votes
                                      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)
                                        You have left! (?) (thinking…)

                                        We will reconsider to implement this like Nick suggested. I don’t know how many changes there are needed in different parts of the proxy to make this work flawless.

                                        In the meanwhile, please use the onerror event on an img-tag ( http://www.w3schools.com/jsref/event_img_onerror.asp ).

                                        See:
                                        http://www.askdavetaylor.com/how_to_display_image_not_found_graphic_html_javascript_onerror.html

                                        Or this stackoverflow-thread about how to handle this in jQuery:
                                        http://stackoverflow.com/questions/92720/jquery-javascript-to-replace-broken-images

                                      • Don't see your idea?

                                      Images.weserv.nl - General

                                      Feedback and Knowledge Base