Hey folks…
If I have an image stored on AWS S3, is there an external API service (hopefully free) where I can just give the url of the image and be returned the width and height?
You can make this with Wappler.
Why would you need some external API service?
Hey @Notum, if you can show me step by step how to do that, I’ll do it in Wappler!
This seems to be perfect for what you’re looking, you could create a server connect extension for it
It returns these details from a url:
{
width: xx,
height: yy,
type: ‘jpg’,
mime: ‘image/jpeg’,
wUnits: ‘px’,
hUnits: ‘px’,
url: ‘http://example.com/image.jpg’
}
- Create new API action
- In Input -> Post add new variable call url
- In Execute add Get File from S3 category - use POST variable for Path variable
- Add Get Image size from Image Processor category. Use path output from Step 3 as an Image Path
1 Like
Oh didn’t know that there is a “get image size” action, that makes it very easy 