Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
6503191
Add files via upload
marianomarini Mar 14, 2023
73e6ebb
Add files via upload
marianomarini Mar 14, 2023
cdf62d9
Update install.sh
marianomarini Mar 14, 2023
7c18a7e
Add files via upload
marianomarini Mar 14, 2023
4c94303
Update README.md
marianomarini May 2, 2023
412ff2a
Completata transizione
marianomarini May 3, 2023
cd300d1
Inserted new screenshot
marianomarini May 3, 2023
91bcfd5
Create Squeezer-Screen.png
marianomarini May 3, 2023
254f918
Aggiunto screenshot
marianomarini May 3, 2023
959bbf5
Update README.md
marianomarini May 3, 2023
7fe25d3
Delete densify
marianomarini May 3, 2023
4968269
Delete densify.desktop
marianomarini May 3, 2023
2227f34
Delete densify.mo
marianomarini May 3, 2023
d90dfb1
Delete densify.po
marianomarini May 3, 2023
8c37486
Delete squeezer_main.png
marianomarini May 3, 2023
5137efa
Add possibly watermark
marianomarini May 3, 2023
b9fe1d6
Latest screenshot
marianomarini May 3, 2023
680d4fa
Add istructions for watermark feature
marianomarini May 3, 2023
645f300
Watermak instructions
marianomarini May 3, 2023
067edf2
Compressed results
marianomarini May 3, 2023
5d2197c
Add files via upload
marianomarini May 3, 2023
2e13d3f
Delete Squeezer-Screen.png
marianomarini May 3, 2023
6f03f30
Create Squeezer-Screen.png
marianomarini May 3, 2023
a0487db
Add files via upload
marianomarini May 3, 2023
7eea90c
Delete Reserved.ps
marianomarini May 3, 2023
8038827
Delete Riservato.ps
marianomarini May 3, 2023
0625b39
Add files via upload
marianomarini May 3, 2023
a7aff0e
Add files via upload
marianomarini May 3, 2023
d3ddd0e
Final version v.0.1.1
marianomarini May 3, 2023
4bd95e4
Update README.md
marianomarini Mar 30, 2024
82db7a2
Add files via upload
marianomarini Mar 30, 2024
76471ad
Add files via upload
marianomarini Jun 17, 2024
ac99d31
Update install.sh
marianomarini Jun 17, 2024
1a78177
Update squeezer.desktop
marianomarini Jun 17, 2024
e5202a0
Add files via upload
marianomarini Jul 15, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
118 changes: 71 additions & 47 deletions AppImage/src/densify

Large diffs are not rendered by default.

74 changes: 16 additions & 58 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,53 +1,23 @@
# Densify v0.3.1
**maintained by:** hkdb \<<hkdb@3df.io>\><br />
# Squeeze v0.1.1
**maintained by:** marianomarini \<<mariano.marini@mail.com>\><br />
A fork from Densify created by hkdb \<<hkdb@3df.io>\><br />

## Description

A GTK+ GUI Application written in Python that simplifies compressing PDF files with Ghostscript
With version v0.1.1 a watermark can be inserted in every page.

## Change Log

#### May 17th, 2020 - v0.3.1 Released
#### MAY 2th, 2023 - v0.1.0 Released

Hotfix:
- Increased "do not show logo" condition to "any display under 800 (h)"

#### May 17th, 2020 - v0.3.0 Released

Features:
- Added Error Handling Unsafe Character \`
- Switched to Python3 - also fixes #4
- Allow User Resize of Window
- Desktop Notification
- Handling Lower Screen Resolutions - #5
- Refined installation script (v0.2)

Bug Fixes:
- Display Icon - #3

Notes:

- Changed installation Procedure in README


### MAY 13th, 2018 - v0.2.0 Released

Features:
- Improved error handling of filenames - [issue #2](https://github.com/hkdb/Densify/issues/2)
- Support for Chinese & other unicode file names

Bug Fixes:
- Support whitespaces in filenames - [issue #1](https://github.com/hkdb/Densify/issues/1)

#### MAY 13th, 2018 - v0.1.0 Released

- Birth of Densify
- Birth of Squeeze

## Screenshots

![Screenshots](https://osi.3df.io/wp-content/uploads/2018/05/Densify-Screens.png "Screenshots")
![Screenshots](Screenshots/Squeezer-Screen.png "Screenshots")

Notice that compressed.pdf is 4M; the results from compressing a 28M pdf? I then opened up compressed.pdf and it still looked great!
Notice that compressed.pdf is 1.5M; the results from compressing a 3.8M pdf? I then opened up compressed.pdf and it still looked great!

## Under the Hood

Expand All @@ -58,6 +28,7 @@ gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.6 -dPDFSETTINGS=/ebook
-dNOPAUSE -dQUIET -dBATCH -sOutputFile=[compressed.pdf]
"[input.pdf]"
```
If watermark is selected a text watermark will be included in all pages.

## Error Handling

Expand All @@ -84,11 +55,11 @@ Questionable Conditions that the application will verify with User via A Dialog

Step 1:

Download or Clone Densify
Download or Clone Squeezer

Step 2:

Execute the install.sh script from within the downloaded Densify directory to install this application:
Execute the install.sh script from within the downloaded Squeezer directory to install this application:

```
sudo chmod a+x install.sh
Expand All @@ -99,37 +70,24 @@ Enter your sudo password when the dialog pops up.
You should then see this:

```
hkdb@machine:/opt/Densify$ sudo ./install.sh
marmar@machine:/opt/Squeezer$ sudo ./install.sh
Installation Complete. If you don't see any errors above, you are good to go! :)
hkdb@machine:/opt/Densify$
marmar@machine:/opt/Squeezer$
```

Now, you can search for "densify" in Gnome Shell Search and you will see that Densify is available to launch. Enjoy!
Now, you can search for "squeezer" in Gnome Shell Search and you will see that Squeezer is available to launch. Enjoy!

## Future Plans

- Compile to binaries to support Linux with Nuitka
- Build Debian Packages
- Build RPM Packages
- Compile to binaries to support OS X and Windows 10
- None

## Disclaimer

This application is maintained by volunteers and in no way do the maintainers make any guarantees. Please use at your own risk!

## Recognition

Many thanks to Anthony Wong and Koala Yeung for talking me through this and Dr. Haggen So for sharing the following link that inspired me to write this application:

https://www.tjansson.dk/2012/04/compressing-pdfs-using-ghostscript-under-linux/

This is an application utility sponsored by 3DF Limited's Open Source Initiative.

To Learn more please visit:

https://osi.3df.io

https://www.3df.com.hk
Many thanks to hkdb who create Densify

## Want a CLI alternative instead?

Expand Down
Binary file added Screenshots/Squeezer-Screen.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 0 additions & 12 deletions densify.desktop

This file was deleted.

Binary file modified desktop-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified header.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified icon.xcf
Binary file not shown.
23 changes: 13 additions & 10 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,27 @@

#################################################################
### PROJECT:
### Densify
### Squeezer
### VERSION:
### v0.2.0
### v0.1.0
### SCRIPT:
### install.sh
### DESCRIPTION:
### Install Script for Densify
### Install Script for Squeezer
### MAINTAINED BY:
### hkdb <hkdb@3df.io>
### Mariano Marini <mariano.marini@mail.com>
### Disclaimer:
### This application is maintained by volunteers and in no way
### do the maintainers make any guarantees. Use at your own risk.
### ##############################################################

chmod a+x densify
chmod a+x densify.desktop
mkdir -p /opt/Densify
cp densify /opt/Densify
cp *.png /opt/Densify
cp densify.desktop /usr/share/applications/
chmod a+x squeezer
chmod a+x squeezer.desktop
mkdir -p /opt/Squeezer
cp squeezer /opt/Squeezer
cp *.png /opt/Squeezer
cp *.ps /opt/Squeezer
cp squeezer.desktop /usr/share/applications/
cp icon.png /usr/share/icons/squeezer.png
cp squeezer.mo /usr/share/locale/it/LC_MESSAGES/
echo "Installation Complete. If you don't see any errors above, you are good to go! :)"
Loading