Nice image resizer

You see all the nice (resized) images on my site? I’ve made a plugin for them to be generated. Want I wanted was to add an image in the wordpress editor. Give a height and/or width and that they would be resized automatically.

With proud I introduce my resize plugin: com_resize. Why the name? Because I’ve used the source code from on of my Joomla! mambots. Hence the name.

You can download it here. If you have any question: leave behind a comment.

For installing: just unpack it in the plugins folder and activate the plugin. Your server must have GD installed (or Imagemagick I believe). Maybe I’ll release a version with mod_rewrite supported images. But that’s only if I’m sore bored I don’t what to do else.

8 comments ↓

#1 David H on 07.11.08 at 23:53

Hi mate, nice plugin. I’d like to lower the quality of all my images to 70%. Do you think your plugin could do this?

#2 LeonB on 07.12.08 at 09:30

Easy as pie. I think it’s a variable in the com_resize file. It’s now 90, but you can set it to any other percentage.

There’s no fancy backend screen for it available or something.

#3 Hugh on 07.23.08 at 00:28

Hey!

Great plugin but… cant seem to get it to work.

I’m using 2.5.1 and have installed the plugin but doesnt seem to be workin.

Example page at http://www.celebritygossip.ie/celebrity-photos/192-aaron-eckhart-meets-the-fans.html

Do I need to make any further changes to source code to get it to work?

Cheers,

Hugh

#4 LeonB on 07.23.08 at 09:17

Hi Hugh,

Does it give an error / or does it do nothing at all?
No changes would be needed. You must make sure you have given the image a width/height attribute that’s actually smaller than the “real” image size.

#5 Hugh on 07.23.08 at 22:15

Hey Leon,

No error or anything at all. The plugins installed fine… and in terms of the img tags an example is this:

http://www.celebritygossip.ie/celebrity-photos/206-summery-nicole-richie-steps-out.html

Does all look ok to you? Are there any permissions settings i’ve missed or anything. Which folder would the resized images usually go into? I’m baffled.

#6 LeonB on 07.24.08 at 09:52

Thanks Hugh. I think you’ve found a bug. I’ll look into it this evening and if I find the problem I’ll upload a new version of com_resize.

Maybe the problem is that fopen() isn’t allowed to access remote files. But that’s just a wild guess.

#7 Hugh on 07.24.08 at 18:05

Wow, finally i’ve managed to help someone by finding bugs after years of using open source stuff!

Nice one for the quick replies by the way, you’re a legend :-)

#8 LeonB on 07.24.08 at 22:57

Hi Hugh,

Finding bugs is just the beginning :)

But I think I’ve fixed it. I’ve updated the version to 0.0.1. It should be updated in the wordpress directory within the hour so you can upgrade automatically within your wordpress installation.

Leon

Leave a Comment