Get image size dinamically

Use this board to ask questions or have discussions with other Rich Displays users.
Post Reply
infgge00
Profound User
Posts: 28
Joined: Mon May 05, 2014 4:15 am
First Name: Giovani
Last Name: Garcia Estevez
Company Name: SISA, S.L.
Contact:

Get image size dinamically

Post by infgge00 »

I would to know the images size (width and height) when I upload them from File Upload Widget.

thanks
infgge00
Profound User
Posts: 28
Joined: Mon May 05, 2014 4:15 am
First Name: Giovani
Last Name: Garcia Estevez
Company Name: SISA, S.L.
Contact:

Re: Get image size dinamically

Post by infgge00 »

Another question: How do I Could delete and uploaded file to IFS from Profound? It´s possible?
Scott Klement
Experienced User
Posts: 2711
Joined: Wed Aug 01, 2012 8:58 am
First Name: Scott
Last Name: Klement
Company Name: Profound Logic
City: Milwaukee
State / Province: Wisconsin

Re: Get image size dinamically

Post by Scott Klement »

The File Upload widget is a generic tool for uploading files. It can upload any sort of files, and does not know the difference between an image vs any other sort of file. It does not know how to extract an images height/width from the image file itself. You would need software for working with image files in order to get that information. (Or, perhaps you could find a way to get that information on the browser side of things, since browsers have built-in software for displaying certain types of images.)

You can delete files uploaded by Profound UI in the standard way that you would delete any other files from the IFS. The RMVLNK CL command or the unlink() IFS API should work nicely for this.
Post Reply

Who is online

Users browsing this forum: No registered users and 6 guests