Selecting by file size

Started by MichaelR, February 22, 2018, 01:00:52 PM

Previous topic - Next topic

MichaelR

We are looking to make a selection of images in a batch of Jpeg files which are larger than 50MB when opened.

When we have Tiff files we can easily see this because the file size is the same when it is closed as when it's opened. We don't know how we can find the selection when we have a batch of Jpeg files.

My question is if we can find a solution in Imatch?

Thanks for your time and attention.

Friendly greetings,

Michael

Mario

You can use the File Size filter in the Filter Panel.
Enter 50000000 for From.
This filters out files smaller than 50 million bytes in the current scope. You can combine that with other filters, e.g. the File Format filter to limit this to JPEG files > 50MB.
-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook

MichaelR

Jpeg 7.32 MB closed  opened  Jpeg 54.4 MB

We would like to find the 54.4 MB file. How can we do this? The steps mentioned recognise only the closed file size.

Mario

What do you mean with opened?

The file size filter uses the size of the JPEG file on disk, as reported by Windows.
-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook

MichaelR

For example when you open the image in Photoshop.

MichaelR

We want to select on the expanded size.

Mario

What do you mean by expanded size. I don't know this term.

Do you mean with image dimensions perhaps? Width and height in pixels?
You can use the Image Dimension and Orientation filter. If you want to select by dimensions or megapixels or similar.

Or do you refer to some meadure Photoshop cooks up somehow and displays somewhere?
-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook

MichaelR

When you open an image in irfanview and look in irfanview image properties you can see: disc size (being the closed image) and current memory size (being the opened image). If the current memory size is available somewhere in the metadata we could select on this?

MichaelR

See screenshot in attachment.

zematima

Hi:
As Mario said you can do this with the Image Dimension and Orientation filter.
You can put the Original Size that is:
3543 x 2358
This gives you an "uncompressed" file of 23.91 MB and a compressed file of 3.39 MB.
How:
3543*2358 = 8 354 394
8354394*3 bytes = 25 063 182
25063182/1048576 = 23.9 MB       because 1 Megabyte = 1048576 bytes
So all files with those dimensions should gave the same result. (23.9 MB)
At least these are the results of a Nikon D750:
4016W x 6016H *3 / 1048576 = 69.1 MB . In the disk 18.79 MB.
Hope that helps.
Best regards,
JRosa.




Mario

This value has no meaning for IMatch. Why do you need to select files by such a strange criteria?

You can roughly calculate the size in memory as

a) width x height (in pixel) * 3   (assuming IrfanView stores the image in memory using 3 bytes per pixel)
b) width x height (in pixel) * 4   (assuming IrfanView stores the image in memory using 4 bytes per pixel (Windows COLORREF)

A 6000 x 4000 pixel JPEG thus needs 96 MB in memory (4 bytes per pixel).

Your assumption about TIFF is then wrong. TIFF files can be compressed using RLE or ZIP, it can have multiple compressed layers etc. The size of the TIFF on disk is unrelated of how RAM the TIFF needs when loaded. Your assumption is only right-ish for uncompressed TIFF files with a single layer and no other data.
-- Mario
IMatch Developer
Forum Administrator
http://www.photools.com  -  Contact & Support - Follow me on 𝕏 - Like photools.com on Facebook

MichaelR

Thanks for indicating how we can calculate the size!