1870 posts YOU TOUCH IT YOU BUY IT
  • Has referred 200+ members
  • Has sold $500,000+ on Envato Market
  • Has collected 100+ items on Envato Market
  • Made it to the Authors' Hall of Fame
+6 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
  • Elite Author: Sold more than $75,000 on Envato Market
  • Sells items exclusively on Envato Market
  • Has sold $125,000+ on Envato Market
  • Has referred 100+ members
+2 more
Manh says

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

1870 posts YOU TOUCH IT YOU BUY IT
  • Has referred 200+ members
  • Has sold $500,000+ on Envato Market
  • Has collected 100+ items on Envato Market
  • Made it to the Authors' Hall of Fame
+6 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
  • Elite Author: Sold more than $75,000 on Envato Market
  • Sells items exclusively on Envato Market
  • Has sold $125,000+ on Envato Market
  • Has referred 100+ members
+2 more
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 ;)

570 posts Themes and Graphics
  • Has been part of the Envato Community for over 5 years
  • Has referred 50+ members
  • Has sold $250,000+ on Envato Market
  • Has been a beta tester for an Envato feature
+9 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
  • Has sold $1M+ on Envato Market and is now a Power Elite Author
  • Power Elite Author: Sold more than $1M on Envato Market
  • Has referred 200+ members
  • Has collected 10+ items on Envato Market
+5 more
SwiftIdeas says

Looks great!

Look forward to trying this out, thanks :)

- Ed

1870 posts YOU TOUCH IT YOU BUY IT
  • Has referred 200+ members
  • Has sold $500,000+ on Envato Market
  • Has collected 100+ items on Envato Market
  • Made it to the Authors' Hall of Fame
+6 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

791 posts
  • Has been part of the Envato Community for over 5 years
  • Has been a beta tester for an Envato feature
  • Located in India
  • Sells items exclusively on Envato Market
+1 more
laranz says

Can’t wait to test it :)

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

380 posts
  • Sells items exclusively on Envato Market
  • Has sold $2M+ on Envato Market
  • Power Elite Author: Sold more than $1M on Envato Market
  • Made it to the Authors' Hall of Fame
+6 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
  • Has been part of the Envato Community for over 5 years
  • Has sold $250,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Elite Author: Sold more than $75,000 on Envato Market
+4 more
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