Column with total pixels - size

For images Opus offers columns with W and H (pixels).
I would like to filter and delete images below a certain total pixels size.

I can not simply sort on "W" (width pixels) and then delete below a certain width : many images are photos shot as 'portrait' , so they have a smaller width, but the height is okay and v.v. I can not delete photos below a certain height in pixels.

In that case I assume the total number of pixels (i.e. W-pixels x H-pixels) should then be considered.

Have not found any viewer so far offering a kind of 'Total Pixels' column.

Any suggestions?

Thanks.

You can use an advanced find to search for both width and height. You can also use the Dimensions column.

With 'Total Pixels' I meant: pixels W multiplied with pixels L.
AFAIK this column does not exist and neither does it in the number of image viewers I checked.

Something like:

SnagIt-28042018%20163112

This is probably the only way to delete small sized images (small on screen)

This script will add a Total Pixels column.

TotalPixelsColumn.js.txt (1.1 KB)

Script code for those interested:

// Called by Directory Opus to initialize the script
function OnInit(initData)
{
	initData.name = "TotalPixelsColumn";
	initData.version = "1.0";
	initData.copyright = "(c) 2018 jpott";
//	initData.url = "https://resource.dopus.com/viewforum.php?f=35";
	initData.desc = "Adds a Total Pixels column";
	initData.default_enable = true;
	initData.min_version = "12.0";

	var col = initData.AddColumn();
	col.name = "TotalPixels";
	col.method = "OnTotalPixels";
	col.label = "TotalPixels";
	col.justify = "right";
	col.autogroup = true;
	col.type = "number";
}

// Implement the TotalPixels column
function OnTotalPixels(scriptColData)
{
	if (scriptColData.item.metadata == "image")
	{
		var imageMeta = scriptColData.item.metadata.image;
		if (imageMeta.picwidth > 0 && imageMeta.picheight > 0)
			scriptColData.value = imageMeta.picwidth * imageMeta.picheight;
	}
}

Magnificent!

Many thanks indeed! This is exactly what I have been looking for.

From various image sources on Internet I have downloaded many, I mean many, images from my hometown in the old days. A lot of them are simply too small and are useless.
In my case and on my monitor, the threshold is somewhere around 280-300.000 on 'Total pixels'. All below that, I can simply delete.
At first I gave 'Dimensions' a try, but discovered that the sorting is somewhat different from total pixels.

Anyway, again, many thanks!
This definitely saves me a lot hassle.