Hi All. Is there any method that I can get the ima...
# general
b
Hi All. Is there any method that I can get the image width and height from File Cabinet please?
c
If this information isn’t on the file record, you’ll need to calculate it with SuiteScript.
b
How could I calculate it?
c
Off the top of my head, I'd use a UserEvent script on the File record. When the file record saves, I'd use some SuiteScript code to inspect the file extension to make sure it's an image, then I'd calculate the size using a JavaScript library, I'd then save the dimensions on the file record. This assumes that the file record is scriptable. You'd need a developer to investigate and put this together.
If your'e using SuiteCommerce, maybe the image dimensions are already saved somewhere?
Otherwise, I think SuiteScript is the only answer here and it would need a bit of analysis.
b
Thank you