- Author was Featured
- Bought between 50 and 99 items
- Exclusive Author
- Has been a member for 3-4 years
- Item was Featured
- Referred between 50 and 99 users
- Repeatedly Helped protect Envato Marketplaces against copyright violations
- Sold between 250 000 and 1 000 000 dollars
Hey guys,
I just finished new resizing script for WordPress, which should work in 100% cases (not like timthumb where there are plenty of troubles with permission
)
You can find the script on github here:
https://github.com/boobslover/freshizer
Usage:
include 'freshizer.php'; // not fixed height echo fImg::resize( 'http://domain.com/wp/image.jpg', 200, 200, false ); // fixed height echo fImg::resize( 'http://domain.com/wp/image.jpg', 200, 200, true );
The last two (height and fixed) parameters are optional. This script goes with automated caching, so you will be not overloading your server. Also this script does not even connect to your database, yay 
/wp-content/uploads/freshizer/
Please note that you can only resize images saved in the same WordPress installation
- Exclusive Author
- Has been a member for 2-3 years
- Sold between 50 000 and 100 000 dollars
- Bought between 1 and 9 items
- Referred between 50 and 99 users
Great work mate, is it allowed to redistribute? 
- Author was Featured
- Bought between 50 and 99 items
- Exclusive Author
- Has been a member for 3-4 years
- Item was Featured
- Referred between 50 and 99 users
- Repeatedly Helped protect Envato Marketplaces against copyright violations
- Sold between 250 000 and 1 000 000 dollars
Manh said
Great work mate, is it allowed to redistribute?![]()
Yes, of course
But please keep it under the same name and with that license. It would also be nice if you credited us (freshface) as the script author somewhere, with a backlink to this thread or something, but I will leave that up to your discretion guys 
- Exclusive Author
- Has been a member for 2-3 years
- Sold between 50 000 and 100 000 dollars
- Bought between 1 and 9 items
- Referred between 50 and 99 users
freshface said
Manh saidYes, of course
Great work mate, is it allowed to redistribute?![]()
But please keep it under the same name and with that license. It would also be nice if you credited us (freshface) as the script author somewhere, with a backlink to this thread or something, but I will leave that up to your discretion guys
![]()
Yes of course, the author is always respected 
i’ll will try it in my next project 
- Author had a File in an Envato Bundle
- Author had a Free File of the Month
- Author was Featured
- Bought between 100 and 499 items
- Europe
- Exclusive Author
- Featured in a Magazine
- Has been a member for 3-4 years
Just a quick note, overseeing the code. Never use private statement, if you want to make this class expandable.
If somebody would want to use your class but doesn’t want to break update compatibility and extend your class, he may want to override some of your methods. But you can’t override private ones 
Better use protected. Doesn’t allow access from outside but makes it expandable.
Nice work, btw 
Looks great!
Look forward to trying this out, thanks 
- Ed
- Author was Featured
- Bought between 50 and 99 items
- Exclusive Author
- Has been a member for 3-4 years
- Item was Featured
- Referred between 50 and 99 users
- Repeatedly Helped protect Envato Marketplaces against copyright violations
- Sold between 250 000 and 1 000 000 dollars
Bebel said
Just a quick note, overseeing the code. Never use private statement, if you want to make this class expandable.If somebody would want to use your class but doesn’t want to break update compatibility and extend your class, he may want to override some of your methods. But you can’t override private ones
Better use protected. Doesn’t allow access from outside but makes it expandable.
Nice work, btw![]()
Thank you, I’m actually not so much experienced with programming in team. So I just declared all private methods as protected, then everyone can implement it own inherent class
Can’t wait to test it 
wait, what’s your github username 

- Interviewed on the Envato Notes blog
- United States
- Power Elite Author: Sold between 1 000 000 - 1 999 999 dollars
- Author was Featured
- Item was Featured
- Referred between 1000 and 1999 users
- Exclusive Author
- Has been a member for 3-4 years
Oh wow, thanks! I’ve been working on my own Timthumb alternative, which works, but I can’t say 100% that it will work for everyone. (but I really think it does). Now I come across your script… I think I’ll use your script since you seem more confident than me that it will work with 100% of users.
I won’t wait to use it on a new theme… instead I will upgrade an existing one.
