[Solved] Counting how many PNG files are in a ZIP archive

Discussion related to "Everything" 1.5 Alpha.
Post Reply
w64bit
Posts: 272
Joined: Wed Jan 09, 2013 9:06 am

[Solved] Counting how many PNG files are in a ZIP archive

Post by w64bit »

Is there any way to count how many PNG files are in a ZIP archive?
Last edited by w64bit on Sun Jan 05, 2025 8:03 pm, edited 1 time in total.
NotNull
Posts: 5623
Joined: Wed May 24, 2017 9:22 pm

Re: Counting how many PNG files are in a ZIP archive

Post by NotNull »

Untested:

Code: Select all

ext:zip  zip-file-name:*.png   addcol:A  A-label:="# png"  A:=regex_count(container-filenames:,"\.png(;|$)") 
Just curious: can png files - which are already compressed - be compressed even further in a zip?
w64bit
Posts: 272
Joined: Wed Jan 09, 2013 9:06 am

Re: Counting how many PNG files are in a ZIP archive

Post by w64bit »

Perfect. Thank you very much.
NotNull wrote: Sun Jan 05, 2025 7:56 pm Just curious: can png files - which are already compressed - be compressed even further in a zip?
Nope. I am archiving files mostly for wetransfer. To have 1 file.
NotNull
Posts: 5623
Joined: Wed May 24, 2017 9:22 pm

Re: [Solved] Counting how many PNG files are in a ZIP archive

Post by NotNull »

So, more like a Unix/Linux tarball. Got it, thanks!
Post Reply