1865 posts YOU TOUCH IT YOU BUY IT
  • Bought between 100 and 499 items
  • Referred between 200 and 499 users
  • Has been a member for 5-6 years
  • Won a Competition
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Elite Author
  • Sold between 250 000 and 1 000 000 dollars
+1 more
FRESHFACE says

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 :)

All images are stored in:
/wp-content/uploads/freshizer/

Please note that you can only resize images saved in the same WordPress installation

116 posts YeahThemes
  • Exclusive Author
  • Elite Author
  • Sold between 100 000 and 250 000 dollars
  • Has been a member for 3-4 years
  • Bought between 1 and 9 items
  • Referred between 100 and 199 users
Manh says

Great work mate, is it allowed to redistribute? :D

1865 posts YOU TOUCH IT YOU BUY IT
  • Bought between 100 and 499 items
  • Referred between 200 and 499 users
  • Has been a member for 5-6 years
  • Won a Competition
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Elite Author
  • Sold between 250 000 and 1 000 000 dollars
+1 more
FRESHFACE says

Great work mate, is it allowed to redistribute? :D

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 ;)

116 posts YeahThemes
  • Exclusive Author
  • Elite Author
  • Sold between 100 000 and 250 000 dollars
  • Has been a member for 3-4 years
  • Bought between 1 and 9 items
  • Referred between 100 and 199 users
Manh says


Great work mate, is it allowed to redistribute? :D
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 ;)

Yes of course, the author is always respected :)

i’ll will try it in my next project ;)

549 posts Themes and Graphics
  • Author had a File in an Envato Bundle
  • Author had a Free File of the Month
  • Bought between 100 and 499 items
  • Elite Author
  • Envato Studio (Microlancer) Beta Tester
  • Europe
  • Exclusive Author
+4 more
Bebel says

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 ;)

194 posts Dreams Money Can Buy
  • Power Elite Author
  • Power Elite Author: Sold between 1 000 000 - 1 999 999 dollars
  • Bought between 10 and 49 items
  • Referred between 200 and 499 users
  • United Kingdom
  • Has been a member for 3-4 years
  • Exclusive Author
SwiftIdeas says

Looks great!

Look forward to trying this out, thanks :)

- Ed

1865 posts YOU TOUCH IT YOU BUY IT
  • Bought between 100 and 499 items
  • Referred between 200 and 499 users
  • Has been a member for 5-6 years
  • Won a Competition
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Elite Author
  • Sold between 250 000 and 1 000 000 dollars
+1 more
FRESHFACE says

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

787 posts
  • Exclusive Author
  • India
  • Has been a member for 5-6 years
  • Beta Tester
  • Referred between 1 and 9 users
  • Envato Studio (Microlancer) Beta Tester
laranz says

Can’t wait to test it :)

wait, what’s your github username :shocked::zipped:

377 posts
  • Power Elite Author: Sold between 2 000 000 - 4 999 999 dollars
  • Power Elite Author
  • United States
  • Interviewed on the Envato Notes blog
  • Referred more than 2000 users
  • Exclusive Author
  • Has been a member for 4-5 years
+1 more
GoodLayers says

Can’t wait to test it :) wait, what’s your github username :shocked::zipped:

LOL Cool name! :)

Great stuff BTW :D

255 posts
  • Bought between 10 and 49 items
  • Elite Author
  • Exclusive Author
  • Has been a member for 5-6 years
  • Sold between 250 000 and 1 000 000 dollars
  • United States
BuchmannDesign says

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.

by
by
by
by
by
by