Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Up-477] Optimization example - remove unused resources #229

Conversation

kellemNegasi
Copy link
Contributor

No description provided.

Copy link
Contributor

@gunnsth gunnsth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you update the README also under compress/ folder?

Copy link
Contributor

@gunnsth gunnsth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@gunnsth
Copy link
Contributor

gunnsth commented Jul 20, 2023

Maybe we should mention which filters are lossy vs lossless. Removing unused resources is lossless for the most parts.

@gunnsth
Copy link
Contributor

gunnsth commented Jul 28, 2023

@kellemNegasi can you update this and the other PR? A new release of unipdf has just been published so this should be ready once updated.

@kellemNegasi
Copy link
Contributor Author

@kellemNegasi can you update this and the other PR? A new release of unipdf has just been published so this should be ready once updated.

Ok. I will do.

@kellemNegasi
Copy link
Contributor Author

Maybe we should mention which filters are lossy vs lossless. Removing unused resources is lossless for the most parts.

@gunnsth I have tried to mention which filters are lossless on the README file. Can you check and see if I have to add or remove some filters to or from the list.

}
```

From the available filters `CleanFonts`, `CleanUnusedResources`, `CombineDuplicateStreams`, `CombineDuplicateDirectObjects`,`CombineDuplicateDirectObjects`, `CleanFonts` and `CompressStreams` enable lossless compressions.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

UseObjectStreams also
CombineIdenticalIndirectObjects also

Actually most of them are lossless except ImageUpperPPI and ImageQuality.

Copy link
Contributor

@gunnsth gunnsth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@gunnsth gunnsth merged commit 2b960e9 into unidoc:master Aug 1, 2023
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants