An open community 
of Macintosh users,
for Macintosh users.

FineTunedMac Dashboard widget now available! Download Here

Previous Thread
Next Thread
Print Thread
Apple compress function doesn't compress
#51148 02/22/19 04:44 PM
Joined: Aug 2009
Likes: 14
ryck Online OP
OP Online

Joined: Aug 2009
Likes: 14
I am trying to reduce the size of a file that is well within the transmission limits of my ISP but is refused by a system that has a lower threshold. I've right-clicked on the file and chosen Compress "File Name". The system makes a zip file but it is the same size as the original. Tilt!

How do I get the OS compress function to reduce the file size?


ryck

"What Were Once Vices Are Now Habits" The Doobie Brothers

iMac (Retina 5K, 27", 2020), 3.8 GHz 8 Core Intel Core i7, 8GB RAM, 2667 MHz DDR4
OS Ventura 13.6.3
Canon Pixma TR 8520 Printer
Epson Perfection V500 Photo Scanner c/w VueScan software
TM on 1TB LaCie USB-C
Re: Apple compress function doesn't compress
ryck #51149 02/22/19 04:53 PM
Joined: Aug 2009
Likes: 4
Offline

Joined: Aug 2009
Likes: 4
More info required.

What sort of file? A text (eg, Word) document? A multi-format presentation?

Is it necessary that the recipient be able to manipulate the contents of the file? Or can it be a read-only file?

Maybe a straight PDF conversion would suffice?

Re: Apple compress function doesn't compress
ryck #51150 02/22/19 04:56 PM
Joined: Aug 2009
Likes: 15
Online

Joined: Aug 2009
Likes: 15
I use Keka for compression...lots of options with which to experiment, but first, what type of file are you trying to compress? Not all file types, e.g. PDFs, can be more than minimally compressed.


The new Great Equalizer is the SEND button.

In Memory of Harv: Those who can make you believe absurdities can make you commit atrocities. ~Voltaire
Re: Apple compress function doesn't compress
artie505 #51152 02/22/19 09:40 PM
Joined: Aug 2009
Likes: 14
ryck Online OP
OP Online

Joined: Aug 2009
Likes: 14
Originally Posted By: grelber
What sort of file?

Originally Posted By: artie505
Not all file types, e.g. PDFs, can be more than minimally compressed.

The file is a 16 page password-protected PDF which, I guess, provides the answer….it can’t be further compressed.

However, not all is lost. I found that it is quite easy in the Mac to split a PDF, so that’s what I did, and sent two smaller PDFs. And, before Ira asks smile , this is how easy it was:

1. Open the PDF with Preview.

2. Choose Thumbnail view to see all the pages in the left column.

3. Using Command-Click, select a group of pages.

4. Drag those to a folder or even just to the Desktop.

5. Using Command-Click, select the balance of the pages.

6. Drag those to the same place

Now you have two new PDFs, each comprised of half of the first.


Thanks for the tip on Keka….I’ll take a peek.


ryck

"What Were Once Vices Are Now Habits" The Doobie Brothers

iMac (Retina 5K, 27", 2020), 3.8 GHz 8 Core Intel Core i7, 8GB RAM, 2667 MHz DDR4
OS Ventura 13.6.3
Canon Pixma TR 8520 Printer
Epson Perfection V500 Photo Scanner c/w VueScan software
TM on 1TB LaCie USB-C
Re: Apple compress function doesn't compress
grelber #51153 02/22/19 09:40 PM
Joined: Aug 2009
Likes: 16
Moderator
Online
Moderator

Joined: Aug 2009
Likes: 16
I'm with Grelber a lot more information is needed.

Using standard compression algorithms such a Zip, 7Zip, RAR, etc a 50% or better compression ratio is possible with pure text files, but if there are lots of graphics and/or audio it is entirely possible the compressed file will be larger than the original. Text compression algorithms like Zip, 7Zip, RAR, et. al. compress data by identifying repeating character strings in a segment of text and substituting pointers to the original string instead of repeating the string itself. Graphic and audio files have few or no such repeating strings and therefore are not compressed by these algorithms. In fact many compression utilities simply copy graphic and audio content rather than trying to compress them. Graphic and audio compression algorithms like JPEG, MPEG, ETC. are lossy and achieve compression by physically discarding some/much of the data which, of course would be unacceptable for text.

My solution for this situation is to place the data file in a public folder on an internet server and share it with the intended recipient(s). That handily gets around any email size restrictions/limits. You simply send the URL and the recipient downloads the file.


If we knew what it was we were doing, it wouldn't be called research, would it?

— Albert Einstein
Re: Apple compress function doesn't compress
joemikeb #51154 02/22/19 09:44 PM
Joined: Aug 2009
Likes: 14
ryck Online OP
OP Online

Joined: Aug 2009
Likes: 14
Originally Posted By: joemikeb
Text compression algorithms like Zip, 7Zip, RAR, et. al. compress data by identifying repeating character strings in a segment of text and substituting pointers to the original string instead of repeating the string itself. Graphic and audio files have few or no such repeating strings and therefore are not compressed by these algorithms.

I'm guessing that's the answer. The file was one large PDF consisting of several pages of documents scanned in. I assume this means there would not be any of the character strings needed to reduce size through the repetition.

Just out of curiosity, I ran a quick test and compressed a text-only Pages file. It went from 180 MB to 147 MB. Thanks for the comprehensive and clear explanation....the penny has dropped. laugh

Last edited by ryck; 02/22/19 09:49 PM.

ryck

"What Were Once Vices Are Now Habits" The Doobie Brothers

iMac (Retina 5K, 27", 2020), 3.8 GHz 8 Core Intel Core i7, 8GB RAM, 2667 MHz DDR4
OS Ventura 13.6.3
Canon Pixma TR 8520 Printer
Epson Perfection V500 Photo Scanner c/w VueScan software
TM on 1TB LaCie USB-C
Re: Apple compress function doesn't compress
ryck #51159 02/23/19 07:04 AM
Joined: Aug 2009
Likes: 4
Offline

Joined: Aug 2009
Likes: 4
Originally Posted By: ryck
The file is a 16 page password-protected PDF which, I guess, provides the answer….it can’t be further compressed.
... I found that it is quite easy in the Mac to split a PDF, so that’s what I did, and sent two smaller PDFs. ...

You can do the same thing with Adobe Acrobat (if you've got it).

Re: Apple compress function doesn't compress
grelber #51160 02/23/19 02:25 PM
Joined: Aug 2009
Likes: 14
ryck Online OP
OP Online

Joined: Aug 2009
Likes: 14
Yes, I was aware of that, and used to have Acrobat but got rid of it when I figured out that Preview does pretty much everything I need to do with PDFs. I also like using a piece of software that is essentially an extension of the OS.


ryck

"What Were Once Vices Are Now Habits" The Doobie Brothers

iMac (Retina 5K, 27", 2020), 3.8 GHz 8 Core Intel Core i7, 8GB RAM, 2667 MHz DDR4
OS Ventura 13.6.3
Canon Pixma TR 8520 Printer
Epson Perfection V500 Photo Scanner c/w VueScan software
TM on 1TB LaCie USB-C
Re: Apple compress function doesn't compress
ryck #51165 02/23/19 05:34 PM
Joined: Aug 2009
Likes: 8
Offline

Joined: Aug 2009
Likes: 8
It is possible to compress a PDF in Preview. I have done it many times and the results vary in terms of savings and quality.

*In the Preview app on your Mac, open the PDF, then choose File > Export.

*Click the Quartz Filter pop-up menu, then choose Reduce File Size.


On a Mac since 1984.
Currently: 24" M1 iMac, M2 Pro Mac mini with 27" BenQ monitor, M2 Macbook Air, MacOS 14.x; iPhones, iPods (yes, still) and iPads.
Re: Apple compress function doesn't compress
Ira L #51166 02/23/19 05:54 PM
Joined: Aug 2009
Likes: 15
Online

Joined: Aug 2009
Likes: 15
Originally Posted By: Ira L
...the results vary in terms of savings....

I just experimented with the first PDF I could find, and ZIP reduced it by about 10%, 7Z reduced it a bit further, and Preview/File/Export increased it by about 50%.

Vary, indeed. crazy


The new Great Equalizer is the SEND button.

In Memory of Harv: Those who can make you believe absurdities can make you commit atrocities. ~Voltaire
Re: Apple compress function doesn't compress
Ira L #51168 02/23/19 06:51 PM
Joined: Aug 2009
Likes: 14
ryck Online OP
OP Online

Joined: Aug 2009
Likes: 14
Originally Posted By: Ira L
....the results vary in terms of savings and quality.

I had a little different experience than artie. The compression was quite dramatic....from 11.7 MB down to 409 KB. However, when I double-click opened the compressed file it didn't appear to unpack and I was looking at very blurry text.

Last edited by ryck; 02/23/19 06:53 PM.

ryck

"What Were Once Vices Are Now Habits" The Doobie Brothers

iMac (Retina 5K, 27", 2020), 3.8 GHz 8 Core Intel Core i7, 8GB RAM, 2667 MHz DDR4
OS Ventura 13.6.3
Canon Pixma TR 8520 Printer
Epson Perfection V500 Photo Scanner c/w VueScan software
TM on 1TB LaCie USB-C
Re: Apple compress function doesn't compress
Ira L #51170 02/23/19 09:27 PM
Joined: Aug 2009
Likes: 16
Moderator
Online
Moderator

Joined: Aug 2009
Likes: 16
Originally Posted By: Ira L
It is possible to compress a PDF in Preview. I have done it many times and the results vary in terms of savings and quality.

*In the Preview app on your Mac, open the PDF, then choose File > Export.

*Click the Quartz Filter pop-up menu, then choose Reduce File Size.

Remember that a scanned PDF file is an image just as a JPEG is an image. Image compression algorithms do their thing by discarding data. The variation in results are a function of the initial scan resolution (how much data you start with) and the compression level (how much of the original data is discarded in the compression process).


If we knew what it was we were doing, it wouldn't be called research, would it?

— Albert Einstein
Re: Apple compress function doesn't compress
ryck #51313 03/12/19 04:38 PM
Joined: Aug 2009
Offline

Joined: Aug 2009
Originally Posted By: ryck
The file is a 16 page password-protected PDF which, I guess, provides the answer….it can’t be further compressed.


No further information is required

That means it's encrypted. Encrypted data cannot be compressed. The End.


I work for the Department of Redundancy Department

Moderated by  alternaut, dianne, dkmarsh 

Link Copied to Clipboard
Powered by UBB.threads™ PHP Forum Software 7.7.4
(Release build 20200307)
Responsive Width:

PHP: 7.4.33 Page Time: 0.030s Queries: 40 (0.022s) Memory: 0.6388 MB (Peak: 0.7412 MB) Data Comp: Zlib Server Time: 2024-03-29 01:02:38 UTC
Valid HTML 5 and Valid CSS