question

georgeotoole avatar image
0 Likes"
georgeotoole asked ·

Fetch Large Image Sizes

From the eBay Trading API, I am using the `GetItem` call to retrieve the details of a specific item to display on another website. I use the `PictureDetails` section to pull the images for display: { "GalleryType": ["Plus"], "GalleryURL": ["http:\/\/ i.ebayimg.com\/00\/s\/random_str_1\/z\/random_str_2\/$_1.JPG?set_id=880000500F"], "PhotoDisplay": ["PicturePack"], "PictureURL":[ "http:\/\/ i.ebayimg.com\/00\/s\/random_str_1\/z\/random_str_2\/$_1.JPG?set_id=880000500F", "http:\/\/ i.ebayimg.com\/00\/s\/random_str_1\/z\/random_str_3\/$_1.JPG?set_id=880000500F", "http:\/\/ i.ebayimg.com\/00\/s\/random_str_1\/z\/random_str_4\/$_1.JPG?set_id=880000500F", "http:\/\/ i.ebayimg.com\/00\/s\/random_str_1\/z\/random_str_5\/$_1.JPG?set_id=880000500F" ... ], "PictureSource": ["EPS"] } I have seen that when you upload a file to eBay, they will create multiple versions of the image with different image sizes, representing by the `$_x` suffix at the end of each image. For example, manually replacing `$_1` with `$_3` or similar would yield the images at a different size. However, this does _not_ seem to be a solution for all items that I have uploaded as sometimes different screen sizes are not created and yield a "placeholder" or "blank" image. That is, I cannot simply replace `$_1` with `$_3` or similar for all my items as this would not always yield an image. I can see, though, that when you upload an image using the eBay API [UploadSiteHostedPictures]( http://developer.ebay.com/devzone/xml/docs/Reference/ebay/UploadSiteHostedPictures.html) that the example response gives details of the different images created: .... http://i.ebayimg.com/00/s/NDAwWDE2MDA=/z/egUAAOSwBahVNDe8/$_0.JPG 24 96 http://i.ebayimg.com/00/s/NDAwWDE2MDA=/z/egUAAOSwBahVNDe8/$_1.JPG 100 400 .... However, I do not use the API to upload the images. I would like to, in some way, retrieve this sort of information using the `GetItem` or some other `GetXYZ` call to retrieve this information. Is there any way to know which other sizes have been created using the eBay API so that I can be sure I can show the largest available image size on my website?
getitemimage urls
10 |600 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

· Write an Answer
clickimusprime avatar image
0 Likes"
clickimusprime answered ·
· Share
10 |600 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.