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

Lossless image compression #22

Open
ghost opened this issue Mar 25, 2015 · 2 comments
Open

Lossless image compression #22

ghost opened this issue Mar 25, 2015 · 2 comments

Comments

@ghost
Copy link

ghost commented Mar 25, 2015

Is it possible to add this future to Kohana image module?

For example: $image->press(Image::LOSSLESS)->save();

@enov
Copy link
Contributor

enov commented Mar 25, 2015

The Image class has a ::save() method with a $quality parameter:

Image::save($file = NULL, $quality = 100)

However, if you are dealing with JPG files, you are dealing with mostly a lossy algorithm.

You should get lossless results when using PNG, irrespective of the $quality parameter.

@ghost
Copy link
Author

ghost commented Mar 25, 2015

Yea, ofc i saw it. But is it simillar: quality of photo and lossless image compression ? Lossless means, what we will not use quality, but we take some advantages in physical size of photo (KB).

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

No branches or pull requests

1 participant