1908 posts YOU TOUCH IT YOU BUY IT
  • Top Monthly Author
  • Community Superstar
  • Author Level 11
  • Winner
+10 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
  • Trendsetter
  • Elite Author
  • Weekly Top Seller
  • Exclusive Author
+4 more
Yhthms
says

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

1908 posts YOU TOUCH IT YOU BUY IT
  • Top Monthly Author
  • Community Superstar
  • Author Level 11
  • Winner
+10 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
  • Trendsetter
  • Elite Author
  • Weekly Top Seller
  • Exclusive Author
+4 more
Yhthms
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 ;)

610 posts Themes and Graphics
  • 6 Years of Membership
  • Affiliate Level 3
  • Author Level 9
  • Beta Tester
+11 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 ;)

198 posts Dreams Money Can Buy
  • Top Monthly Author
  • Trendsetter
  • Weekly Top Seller
  • Author Level 12
+8 more
SwiftIdeas
says

Looks great!

Look forward to trying this out, thanks :)

- Ed

1908 posts YOU TOUCH IT YOU BUY IT
  • Top Monthly Author
  • Community Superstar
  • Author Level 11
  • Winner
+10 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

822 posts
  • 6 Years of Membership
  • Beta Tester
  • India
  • Exclusive Author
+1 more
laranz
says

Can’t wait to test it :)

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

392 posts
  • Most Wanted Winner
  • Author Level 13
  • Top Monthly Author
  • Trendsetter
+10 more
GoodLayers
says

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

LOL Cool name! :)

Great stuff BTW :D

260 posts
  • 6 Years of Membership
  • Author Level 10
  • Collector Level 2
  • Elite Author
+6 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