|
Post by kokenge on Jun 7, 2015 6:58:14 GMT -5
When I store a photo link I get the width and height using loadgraphic. I store it because loadgraphis is slow. I use the width and height in order to show photos in a table. To make sure the tall thing photos, and the short fat photos take the same space in a cell I divide the (height * .75) by the width. I use the percentage as the width of the cell. The only problem is that they could change the photo size after I store it.
So my question; Is there a faster way to get the width and height of a photo so I can get width and height dynamically instead of storing it up front.
Thanks for the help...
|
|
neal
Full Member
 
Posts: 104
|
Post by neal on Jun 9, 2015 20:06:11 GMT -5
I've used ImageMagick (http://imagemagick.org/) to manipulate images from Run Basic (using shell$()). It has tools to give you the size of an image. Not sure if running an external program would be quicker than using loadgraphic, but it might be worth trying.
|
|