Image Resizing

adgj Jan 31, 2014 07:19AM PST

I see added to the src of the images when I use Image Resizing API. I want to how to test if re-sizing is actually working. Can I use chrome's webinspector or chrome's emulate tool to test? When I debug through web inspector I don't see <format><quality>/<maximum width>/<maximum height> parameters append to the url. How do I know if the API is working>?

Up -1 rated Down
Jennifer Jan 31, 2014 01:25PM PST Mobify Agent


Checking the image src in web inspector is a good way to check if the API is working. Do you know which version of the API you are using?

If you are using 1.1 (documentation here), then you will need to pass an object to the resizeImages function that specifies what options should be used for the image. That would look something like this:

var irOptions = {
maxWidth: 200,
format: ‘jpg’,
quality: 90


It would produce images with the following src: "//<Original-img-src>

Hope that helps,

Post Your Public Answer

Your name (required)
Your email address (required)
Answer (required)
seconds ago
a minute ago
minutes ago
an hour ago
hours ago
a day ago
days ago
Invalid characters found