ImageScaler 1.0
Update: Due to lack of time and interest (on my part), I am no longer maintaining JSSpamBlock or ImageScaler.
This blog has been a bit slow since I started school, partly because of the extra work but also partly because the “just for fun” projects I have been working on have gotten larger. At the same time, I hate to neglect my existing projects to start other ones. Given that, I was very lucky to have David Karlsson, who had released a modified version of Image Scaler, agree to incorperate the original functionality back in so that I could make it an official release. The biggest improvement is that you can now set a maximum width and height, which are used to resize all the images. So if your theme breaks with images over 600 pixels in width, Image Scaler is a graceful way to stop this from happening.
You can download Image Scaler 1.0 from WordPress, where it is hosted.
still doesnt work, at least in 2.3
its actually only strips picture width and height from image and let it as it is, but its maybe because the image is in another directory - /files
ill try to add that again in default directory and see if something changes
Comment by Nescius — October 7, 2007 @ 3:43 pm
well, and it does work, but not with modified upload directory (which is not needed in this particular blog) so thank you very much for this functionality, but i would be grateful if it could take the patch in consideration
Comment by Nescius — October 7, 2007 @ 3:49 pm
I can completely understand how other things get in the way. My personal blog always suffer when I start having fun with my other sites. I guess it’s like a relationship!
Comment by ses5909 — October 11, 2007 @ 5:01 am
Nescius, glad you got it working. Thanks for figuring out what went wrong, I will take that into consideration if I get around to working on the plugin again.
ses5909, thanks for understanding. For me, the big time-consumer is school; to do well in school, have a social life, and code is proving to be quite difficult, so the code is losing out.
Comment by Paul Butler — October 11, 2007 @ 5:06 am
Hi Paul!
First thank you for this great plugin! It fits really well to the needs of a website I’m creating right now. The maximum image size was the (second
last thing that was missing.
The very last thing would be to make the plugin work if the blog URL differs from the Wordpress URL (see http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory).
The solution seems to me to use the ’siteurl’ option value instead of the ‘home’ option, i.e. replacing each occurrence of
$wp_object_cache->cache[’options’][’alloptions’][’home’]
with
$wp_object_cache->cache[’options’][’alloptions’][’siteurl’]
Right now I patched your plugin for my personal use, but it would surely be a nice “official” addition that other users could benefit from, too.
Take care
Dominique
Comment by Dominique — October 13, 2007 @ 4:15 pm
pls tell me how to fix imagescaler for wordpress 2.3
Comment by burnick — October 15, 2007 @ 6:32 pm
Dominique, thanks, I will do that for the next release.
burnick, I haven’t gotten around to installing 2.3 on my own blog yet because of school/exams. Unless a user figures out the problem and how to fix it, it will be a while until the plugin works for 2.3.
Comment by Paul Butler — October 15, 2007 @ 6:39 pm
Hi Paul,
thanks for the addition
Btw, there is a shortcut get_option(’siteurl’) which works just as well, essentially accesses the same cache, but might be more future-proof.
@burnick: I was going to upgrade to WP 2.3 sometime too. The preflight check plugin didn’t mention any problems with ImageScaler. Which ones did you encounter? Maybe I could help getting it to work.
Dominique
Comment by Dominique — October 16, 2007 @ 10:43 am
Hi
I really liked your plugin but i couldnt make it work. I have some images from other hosts. I host them on Imageshack. So i wanted to have those images to be thumbnailed in the post. But i think this plugin doesnt work in wp 2.3.
Is there a solution for making thumbnails from Imageshack or other host?
I could find for an alterneative for this.
Waiting for your reply.
Thanks
Regards
Comment by Hakan — October 22, 2007 @ 12:45 am
by the way i have download the latest version but it gave me a bunch of errors like this:
Warning: fwrite(): supplied argument is not a valid stream resource in /var/www/vhosts/sec1tane.com/httpdocs/wp-content/plugins/image-scaler/imagescaler.php on line 60
what am i going to do?
Thanks
Comment by Hakan — October 22, 2007 @ 12:59 am
Hakan, it looks like imagescaler can’t write to the /wp-content/imagescaler/ directory. Do you have access to the permissions of that directory?
Comment by Paul Butler — October 22, 2007 @ 1:05 pm