Re: preloading an mages dimensions
What platform? On a Mac, you can use sips. It's included with the OS. Example - typed on the command line: sips -g pixelHeight -g pixelWidth /Users/pdslabs/Desktop/IMG_4411.jpg The output: /Users/pdslabs/Desktop/IMG_4411.jpg pixelHeight: 750 pixelWidth: 1000 Phil Davis On 12/27/17 9:02 PM, Nicolas Cueto via use-livecode wrote: Before setting the filename of an image object, how do I get the original dimensions of an image (jpg)? Thank you. -- Nicolas Cueto ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode -- Phil Davis ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
Re: preloading an mages dimensions
Hi Nick, Look in the dictionary for formattedWidth formattedHeight Peter Bogdanoff > On Dec 27, 2017, at 9:02 PM, Nicolas Cueto via use-livecode >wrote: > > Before setting the filename of an image object, how do I get the original > dimensions of an image (jpg)? > > Thank you. > > -- > Nicolas Cueto > ___ > use-livecode mailing list > use-livecode@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode
preloading an mages dimensions
Before setting the filename of an image object, how do I get the original dimensions of an image (jpg)? Thank you. -- Nicolas Cueto ___ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode