Technical support and scripting issues
Moderators: Dorian (MJT support), JRL
-
bossydog9
- Junior Coder
- Posts: 29
- Joined: Wed Jan 08, 2020 12:46 pm
Post
by bossydog9 » Tue Jan 21, 2020 3:22 pm
Hi,
Is there a function that returns the dimensions (width & height) of a bmp/png/jpg image? e.g.
Code: Select all
GetImageDimensions>image_filename,width,height
-
DreamTheater
- Newbie
- Posts: 19
- Joined: Mon Oct 14, 2019 6:23 am
Post
by DreamTheater » Wed Jan 22, 2020 3:53 am
I haven't had to do this before and I'm not sure, but if there's a way of accessing the metadata of the image you can read the dimensions from there. (Right click > Properties > Details tab > Dimensions | on WIN7)
-
Dorian (MJT support)
- Automation Wizard
- Posts: 1390
- Joined: Sun Nov 03, 2002 3:19 am
-
Contact:
Post
by Dorian (MJT support) » Wed Jan 22, 2020 12:01 pm
While there is not a specific function to do that, JRL managed to come up with quite an ingenious way of doing it on
this thread.
Yes, we have a
Custom Scripting Service. Message me or go
here
-
bossydog9
- Junior Coder
- Posts: 29
- Joined: Wed Jan 08, 2020 12:46 pm
Post
by bossydog9 » Wed Jan 22, 2020 11:01 pm
Thanks, Dorian & JLT, the very same thought went through my head when I saw the AutoSize property in the Dialog Designer. Cheers.