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 )
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
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 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
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.
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
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.
Thank you guys, feel free to use this script in your themes. Could you please test it at your demo servers for first and then let me know if it works ? It should be 100% bulletproof, because it’s using built-in WordPress functions to resize the images. But I want to have a proof, because I don’t want to be under pressure when you release theme and find a bug after that
SCRIPT UPDATE
now you can resize all images hosted at your server, not only in wp directory
consulting remote images with my programmer friends
thanks for sharing. I’ll let you know if we experience any Issues. Currently we are developing a new theme, so I’ll be able to give you some feedback within the next few hours.
looks like the script return value contains the absolute server path to the image like /var/www/… , which apparently is causing the image not to display. Anyways the image re size itself works great. I’ll do some additional testing now.
that was quick Works great now. I’ll let you know if I recognize any more issues. To be able to make use of images outside the wp-content dir makes this script “uber”