Skip to main content
Published: October 01 2014, 10:02:00 AMUpdated: September 06 2022, 9:10:15 PM

This article will tell you have to find the dimensions of the images using the URL.

In late 2011, eBay introduced the encoded dimensions within the eBay hosted picture URL. But not all images used for listings are eBay hosted.  At this point I think there are 3 scenarios,

1. You get the ExternalURL if it is a self hosted image

    If the image is externally hosted, you should already know the dimensions.  If not, eBay automatically uploads that image to our servers.  You can then use that eBay PictureURL to find the dimensions.  They image returned by eBay may not be exactly the same size of the self hosted image, but it should be close.

2. You can decode the eBay URL is you see the /s/

    Here is an example URL, http://i.ebayimg.com/00/s/OTE2WDY0NQ==/z/fUsAAOxy4eJTMDwX/$_1.JPG?set_id=8800005007. With that you can base64 decode the URL segment following the /s/ to the /z (“OTE2WDY0NQ==”).  This  decodes to “916X645”

3. (pictures before 2011 or that don't have the segment to decode) You will have to manually get the dimensions for URL's such as http://i.ebayimg.com/00/$(KGrHqMOKj0E2LEv3gfJBNsZjW)MiQ~~0_1.JPG?set_id=8800005007


I know #3 is not optimal, but there is not a workaround for this.

 

How well did this answer your question?
Answers others found helpful