You may be thinking that's an odd ball situation or an odd ball photo, but no the photo is straight from a common Canon EOS. It appears to happening when the property "Orientation" is null or nothing as opposed to Normal or a Rotated value. In any case there's no way regardless that I should be getting 2 different results depending on whether I run the script from a CTB or from Scripting | Run script... Note: If you're using the German language you may have to change the property value or comment the line out. I think ImageX and ImageY should work regardless.
Code: Select all
foreach($file, <get selecteditemspathnames |>) {
$p = property("#11", $file);
if ($p == "Picture") {
$d = property("dimensions", $file);
$rotate = property("#245", $file);
$orig_width = property("ImageX", $file);
$orig_height = property("ImageY", $file);
echo Width: $orig_width Height: $orig_height;
}
}
Ken
XYplorer Beta Club