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

Added a percentReszie() method #47

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

abhimanyu003
Copy link
Contributor

Added percentReszie() method to quickly increase or decrease the image size to given percent.

If want to increase the size use positive integer. If want to decrease the size use negative integer.

Example uses:

Image::open()->percentReszie(50)->html('Re-sized to 50 percent')

Image::open()->percentReszie(-50)->html('Re-sized to negative 50 percent')

Added `percentReszie()` method to quickly increase or decrease the image size to given percent. If want to increase the size use positive integer. If want to decrease the size use negative integer.
@Gregwar
Copy link
Owner

Gregwar commented Dec 17, 2013

Hello, this can already be done by:

$image->resize('50%')

@abhimanyu003
Copy link
Contributor Author

Shh didn't notice that, I think language need to little clear for this.
0% == original image
50% == increase the image by 50%
-50% == decrease the image by 50%
This will be easier for calculations

Currently its
100% == original image
150% == increase the image by 50%

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