column "dimensions"

Features wanted...
Post Reply
Veethoben
Posts: 23
Joined: 09 Aug 2015 04:25
Location: Las Palmas, Canary Islands

column "dimensions"

Post by Veethoben »

The "dimensions" column sorts the images according to their area.
I would prefer the order to be by horizontal length x height, is it possible?
Attachments
2024-03-25_034532.jpg
2024-03-25_034532.jpg (64.14 KiB) Viewed 249 times

RalphM
Posts: 1935
Joined: 27 Jan 2005 23:38
Location: Cairns, Australia

Re: column "dimensions"

Post by RalphM »

Set up one of the extra columns with the dimension you want to sort by.
Ralph :)
(OS: W11 22H2 Home x64 - XY: Current beta - Office 2019 32-bit - Display: 1920x1080 @ 125%)

Veethoben
Posts: 23
Joined: 09 Aug 2015 04:25
Location: Las Palmas, Canary Islands

Re: column "dimensions"

Post by Veethoben »

do you mean a "width" column?
It doesn't work either...
Attachments
compara.jpg
compara.jpg (27.1 KiB) Viewed 238 times

highend
Posts: 13333
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: column "dimensions"

Post by highend »

Add height as well and shift+left click the column header of height => Secondary sort order
1.png
1.png (24.46 KiB) Viewed 234 times
One of my scripts helped you out? Please donate via Paypal

Veethoben
Posts: 23
Joined: 09 Aug 2015 04:25
Location: Las Palmas, Canary Islands

Re: column "dimensions"

Post by Veethoben »

It works fine, thank you. But... it doesn't seem very comfortable to have 3 columns for dimensions.
Perhaps if the word "pixels" could be deleted it would be more elegant and we could delete the "dimensions" column

highend
Posts: 13333
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: column "dimensions"

Post by highend »

You can always use a scripted custom column and format the output as you need it...

Code: Select all

return property('System.Image.HorizontalSize', <cc_item>) . 'x' . property('System.Image.VerticalSize', <cc_item>);
One of my scripts helped you out? Please donate via Paypal

Veethoben
Posts: 23
Joined: 09 Aug 2015 04:25
Location: Las Palmas, Canary Islands

Re: column "dimensions"

Post by Veethoben »

Thanks, I'm sure it will work.
But I have never used scripting. I will study it this week.

pixelsearch
Posts: 37
Joined: 21 May 2018 18:45

Re: column "dimensions"

Post by pixelsearch »

Great thread, it made me start to script a couple of lines with XYplorer :)
Actually, if we sort a list of images using the 'Dimensions' column (Width x Height) then the sort will always display results based on the Width coord. But what if we want a sort based on the Height coord ? (I need this from time to time)

This afternoon, after reading several posts on the Forum, one of them redirected me to https://www.xyplorer.com/release_13.90.php

In the preceding link, there is a detailed explanation which shows how to create and use the Scriptable Columns which appeared in version 13.90 (march 2014) . So finally I was able to create 3 Custom columns, which are :

Width column

Code: Select all

return gettoken((property("#image.dimensions", <cc_item>)), 1, " x ");
Height column

Code: Select all

return gettoken((property("#image.dimensions", <cc_item>)), 2, " x ");
Dimensions2 (H x W)

Code: Select all

return gettoken((property("#image.dimensions", <cc_item>)), 2, " x ") . " x " . gettoken((property("#image.dimensions", <cc_item>)), 1, " x ");
In fact, the Dimensions2 custom column (H x W) displays the opposite of the Dimension column (W x H) and can be used by itself for sorts based on image Height (without the need of the Width or Height columns, though it's great to keep all of them in the Custom Columns list, they may be useful one day, who knows).

Thanks to highend for the syntax to separate the image coords in the display, to Don for the scriptable columns and to Veethoben who created this thread. Hope this will help a bit users having the same need.

Veethoben
Posts: 23
Joined: 09 Aug 2015 04:25
Location: Las Palmas, Canary Islands

Re: column "dimensions"

Post by Veethoben »

Well, leaving "dimension" in the first column and placing "width" and "height" on the far right works perfectly and is not annoying.
Thank you.
Attachments
2024-04-03_155534.jpg
2024-04-03_155534.jpg (44.97 KiB) Viewed 88 times

Post Reply