Image Compression and Resize with TinyPNG

I'm using the tutorial on compressing images with tinyPNG by Chris Coleman .

I was able to get the compression to work, but I want to add a second API call to resize the same image, and I'm getting stuck.

In office hours, I was able to get help but I think I'm missing one last piece to get this to work.

The response result I get after the the resize request is a long string. Not a url so I don't understand how to create a file resource from this. Where do I get the resized image URL?



the documentation for tinyPNG resize is here.

Other
4 replies