Normal Color Filters for Image Dimensions
Forum rules
READ THIS AND DO IT!!!
Please include the following information:
1) Your XYplorer Version (e.g., v28.00.0801)
2) Your Windows Version (e.g., Win 11)
3) Your Screen Scaling Percentage (e.g., 125%).
We strongly recommend adding your Windows Version and Screen Scaling Percentage to the Location field in your Profile or to your Signature. That way, you only have to type them once, and we won't have to search for that vital information.
When attaching an Image, please use the Attachment tab at the bottom of your post and click "Add files".
READ THIS AND DO IT!!!
1) Your XYplorer Version (e.g., v28.00.0801)
2) Your Windows Version (e.g., Win 11)
3) Your Screen Scaling Percentage (e.g., 125%).
-
klownboy
- Posts: 4462
- Joined: 28 Feb 2012 19:27
- Location: Windows 11, 25H2 Build 26200.8737 at 100% 2560x1440
Normal Color Filters for Image Dimensions
Don, could you check your system to see if the "normal" color filters for something like "prop:imagey: = 1080>FF0000,CEFFE7" or "prop:imagex: = 1920>0000FF," are working for you? I didn't have color filters enabled (checked off) for these most of the time, but they were working before this latest version beta bringing the new Dynamic Scripting Color Filters. Color filters involving image dimensions don't appear to be working now. Whereas, other "normal" color filters as well as the new Dynamic Scripting Color Filters appear to be working fine.
-
admin
- Site Admin
- Posts: 66331
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: Normal Color Filters for Image Dimensions
Wrong syntax. Are you sure this ever worked??
It should be either of these:
It should be either of these:
Code: Select all
"prop:imagey: == 1080>FF0000,CEFFE7"
"prop:imagey:==1080>FF0000,CEFFE7"
"prop:imagey:1080>FF0000,CEFFE7" FAQ | XY News RSS | XY X
-
klownboy
- Posts: 4462
- Joined: 28 Feb 2012 19:27
- Location: Windows 11, 25H2 Build 26200.8737 at 100% 2560x1440
Re: Normal Color Filters for Image Dimensions
Sorry Don, those examples you provided and those in Help work fine. All the times I use Help and I didn't refer to it this time...Duh! I know I had the color filters for image dimensions working at one time awhile back... I must have messed with them at some point.
By the way I mentioned this before a month ago here http://www.xyplorer.com/xyfc/viewtopic. ... tio#p90589 and you said, sure after summer - incorporating image aspect ratio into Selecting/Visual Filters/Color filters. It might be an ideal time to think about it since your heavy into filtering. You also said you'd consider making an image file's aspect ratio available for use in scripting.
Thanks,
ken
By the way I mentioned this before a month ago here http://www.xyplorer.com/xyfc/viewtopic. ... tio#p90589 and you said, sure after summer - incorporating image aspect ratio into Selecting/Visual Filters/Color filters. It might be an ideal time to think about it since your heavy into filtering. You also said you'd consider making an image file's aspect ratio available for use in scripting.
Thanks,
ken
-
admin
- Site Admin
- Posts: 66331
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: Normal Color Filters for Image Dimensions
Not totally ideal.
But in 13.10 is should be possible...
FAQ | XY News RSS | XY X
-
admin
- Site Admin
- Posts: 66331
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: Normal Color Filters for Image Dimensions
Do you see dimensions/aspect ratio for all your image files in Large Tiles view? Although I successfully use FastPictureViewer for displaying all sorts of RAW formats, I cannot get the dimensions of the RAW pics without opening them. 
FAQ | XY News RSS | XY X
-
admin
- Site Admin
- Posts: 66331
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: Normal Color Filters for Image Dimensions
Whatever, I added it.
Works nicely, very cool for photographers and graphic designers.
BW, the above mentioned problem (previous post) is XP only, in Win7 I get all dimensions of RAW formats.
BW, the above mentioned problem (previous post) is XP only, in Win7 I get all dimensions of RAW formats.
FAQ | XY News RSS | XY X
-
klownboy
- Posts: 4462
- Joined: 28 Feb 2012 19:27
- Location: Windows 11, 25H2 Build 26200.8737 at 100% 2560x1440
Re: Normal Color Filters for Image Dimensions
Sorry Don, I was sleeping. Yes in large tile view, I do have the image dimensions and the aspect ratio in brackets next to it. I've downloaded a bunch of pics lately to evaluate what to buy for my next camera. All the photos, displayed in large tile view, do have the dimensions and aspect ratio in version 12.90.0007. Thanks, aspect ratio will be very helpful. If you get it into scripting at some point I can probably streamline a few scripts.
Ken
Ken
-
admin
- Site Admin
- Posts: 66331
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: Normal Color Filters for Image Dimensions
Yep, it's also in scripting now. Wait and see... 
FAQ | XY News RSS | XY X
-
klownboy
- Posts: 4462
- Joined: 28 Feb 2012 19:27
- Location: Windows 11, 25H2 Build 26200.8737 at 100% 2560x1440
Re: Normal Color Filters for Image Dimensions
All these changes regarding aspect ratio are looking good. Thanks you very much Don. I started to update one of my scripts which previously did the calculations to obtain aspect ratio. One thing I noticed though is that the aspect ratio for a photo, as displayed in large tile view or when I obtain the aspect ratio via scripting, whether it's rotated or not (e.g., a 4896 x 3264 [3:2] - landscape OR 3264 x 4896 portrait, is still displayed as [3:2]. See below. In my scripts I use the property "orientation" to find out if the photo is "rotated" or not. If it's rotated, the orientation value is either "Rotate 90 degrees" or Rotate 270 degrees". So, based on that, I can determine properly which is the x axis and which is the Y" axis to perform cropping. If I'm using the "aspect ratio" simply for viewing, selection or colorizing purposes it's not a big deal, but it is if you're using it to perform operations like cropping. In my original script, my result for a 3:2 image would only select the first of the 2 files shown whereas using aspect ratio as it is currently will obviously pickup both files as shown.
I was wondering if that is something you could build-in if it wasn't too much trouble. In this way, the displayed aspect ratio for a photo who "orientation" value is "90" or "270" would display as 2:3 or 9:16 if it was a portrait photo. I can still determine as I did before, the "orientation" value and if it's "rotated "90" or "270", flip flop the aspect ratio in the scripts if building it in would be too much of a pain.
Thanks again,
Ken
Code: Select all
$rotate = regexreplace(property($orientation, $file), ".*?(\d+).*", "$1"); // image orientation in degrees
if (($rotate == 90) || ($rotate == 270)) {
I was wondering if that is something you could build-in if it wasn't too much trouble. In this way, the displayed aspect ratio for a photo who "orientation" value is "90" or "270" would display as 2:3 or 9:16 if it was a portrait photo. I can still determine as I did before, the "orientation" value and if it's "rotated "90" or "270", flip flop the aspect ratio in the scripts if building it in would be too much of a pain.
Thanks again,
Ken
To see the attached files, you need to log into the forum.
-
admin
- Site Admin
- Posts: 66331
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: Normal Color Filters for Image Dimensions
Hmm, sure I could but that would now severely slow it down. I currently don't see a fast enough way to do it.
FAQ | XY News RSS | XY X
-
klownboy
- Posts: 4462
- Joined: 28 Feb 2012 19:27
- Location: Windows 11, 25H2 Build 26200.8737 at 100% 2560x1440
Re: Normal Color Filters for Image Dimensions
I only used the regex (with highend's help) in my last script here http://www.xyplorer.com/xyfc/viewtopic. ... tio#p89791. In my other scripts, I simply checked property "Orientation" for "Rotate 90 degrees or "Rotate 270 degrees", but we were making it compatible across systems and languages (e.g., "orientation" vs "ausrichtung" etc) which makes for more coding and slow downs. This was one of the reasons for get property index if you recall. I'm all for speed though, and if it's a speed thing I wouldn't want to slow anything down especially in folders heavy with large size photos in thumbnail view. As I said I can do it in scripting and now with "aspect ratio", it's certainly easier than before. Thanks.
-
klownboy
- Posts: 4462
- Joined: 28 Feb 2012 19:27
- Location: Windows 11, 25H2 Build 26200.8737 at 100% 2560x1440
Re: Normal Color Filters for Image Dimensions
The Color Filter button itself - not the drop down arrow to the right of it, should it (or couldn't it) disable also (i.e., act as a true toggle for the Instant Color filter as does the Visual Filter button)? Probably the reason it's that way is because the original purpose of the button is "normal" Color Filters and not "Instant" Color Filters, though it appears it only "enables color filers" as the Tooltip states, not disables. With the advent of Instant Color Filters, I think the Color Filter button itself, not the dropdown, would be significantly more useful as a toggle for "Instant" Color Filters and have a menu item for toggling the "normal" Color Filters on the drop down menu since it wouldn't be used nearly as often. Just a thought...
Edit: I should have put this in Tips...Ad hoc color filters
Edit: I should have put this in Tips...Ad hoc color filters
-
admin
- Site Admin
- Posts: 66331
- Joined: 22 May 2004 16:48
- Location: Win8.1, Win10, Win11, all @100%
- Contact:
Re: Normal Color Filters for Image Dimensions
I cannot change the functionality of this button (respect tradition), but I woke up with the idea to add an extra button to ICF. Just not sure yet about the button type. Like Normal Color Filters (with pressed state to toggle), or like Recent Locations (bigger target to pop the menu and takes less space).
FAQ | XY News RSS | XY X
-
FluxTorpedoe
- Posts: 906
- Joined: 05 Oct 2011 13:15
Re: Normal Color Filters for Image Dimensions
Just a quick note to say that here (WinXP + FPV), I do have different ratios for landscape or portrait with either 3:2 or 2:3! Same with fresh install, in tiles view or via color filters. And I thought it was very useful indeed! 
• Scripts: Session Manager
| SlideShow | Collection Manager | Power Launcher | Akelpad syntax highlighting | ...
-
klownboy
- Posts: 4462
- Joined: 28 Feb 2012 19:27
- Location: Windows 11, 25H2 Build 26200.8737 at 100% 2560x1440
Re: Normal Color Filters for Image Dimensions
Hi Don,
If you go with a new button for ICF, I think the button style of the Visual filter is more appropriate in that when you'd click on the button itself, not the drop down arrow, the ICF would toggle on/off (only a single click necessary) and I think that would be ideal. When you press the arrow you get your choices of ICFs and maybe right click of the arrow bring up the user definable ICFs. Though I'm not sure that's necessary when you can add or change ICF under List Management. Honestly, since I never turned off "normal" color filters, I never had the CTB for it on my toolbar, but I'd certainly have one for ICF.
As Flux mentioned, did you tweak something in v12.90.0009 such that aspect ration displays for rotated (portrait) photos? I'm still testing, but as of right now, I think what flux is reporting is images that are in "normal" orientation that do show as a image ratio of 2:3, not photos that have a rotation value (e.g., Rotated 270 degrees" or 90). I also have some that display as 3:4 properly but again those are photos with an "orientation" value of "normal".
@Flux could you check a few of your photos that displays with an aspect ratio of 2:3 and see what it's "orientation" value is? You can see "orientation" in Metadata CTB. Thanks.
If you go with a new button for ICF, I think the button style of the Visual filter is more appropriate in that when you'd click on the button itself, not the drop down arrow, the ICF would toggle on/off (only a single click necessary) and I think that would be ideal. When you press the arrow you get your choices of ICFs and maybe right click of the arrow bring up the user definable ICFs. Though I'm not sure that's necessary when you can add or change ICF under List Management. Honestly, since I never turned off "normal" color filters, I never had the CTB for it on my toolbar, but I'd certainly have one for ICF.
As Flux mentioned, did you tweak something in v12.90.0009 such that aspect ration displays for rotated (portrait) photos? I'm still testing, but as of right now, I think what flux is reporting is images that are in "normal" orientation that do show as a image ratio of 2:3, not photos that have a rotation value (e.g., Rotated 270 degrees" or 90). I also have some that display as 3:4 properly but again those are photos with an "orientation" value of "normal".
@Flux could you check a few of your photos that displays with an aspect ratio of 2:3 and see what it's "orientation" value is? You can see "orientation" in Metadata CTB. Thanks.
XYplorer Beta Club