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 incorporate 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.

This entry was posted in Image Scaler. Bookmark the permalink.

0 Responses to ImageScaler 1.0

  1. Nescius says:

    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

  2. Nescius says:

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

  3. ses5909 says:

    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!

  4. Paul Butler says:

    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.

  5. Dominique says:

    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

  6. burnick says:

    pls tell me how to fix imagescaler for wordpress 2.3

  7. Paul Butler says:

    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.

  8. Dominique says:

    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

  9. Hakan says:

    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

  10. Hakan says:

    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

  11. Paul Butler says:

    Hakan, it looks like imagescaler can’t write to the /wp-content/imagescaler/ directory. Do you have access to the permissions of that directory?

  12. Richard Burke says:

    BUG: if statement can never be true

    function resize_image()

    $imagename = md5($filename . ‘,’ . $width . ‘,’ . $height);

    if(!file_exists(‘../wp-content/imagescaler’ . $imagename)){
    // make image

    }

  13. Richard Burke says:

    I mean false … whatever.

  14. Paul Butler says:

    Richard, it will be false whenever the image has already been resized. Am I missing something?

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>