com_resize on wordpress plugins

Because I expect a huge, huge demand of my com_resize plugin, I have put it on the wordpress site :)

Now I hope it gets approved.

6 comments ↓

#1 Meerblickzimmer on 05.19.08 at 15:52

Hi!

It looks like a great plugin, but one questiong. The plugin use the with and height from the img-tag? I like to use css-classes and define the with and heigt there. It works with css-classes too?

Thanks for your time and work!
M

#2 LeonB on 05.19.08 at 16:07

It only uses the height and with of the img-tag. It could be possible to use external css, but then it would be so complicated that the plugin wouldn’t be “simple” anymore.

So It’s not likely that that features get supported. If it’s inline css though, it would be a _lot_ simpler.

#3 Roger on 05.24.08 at 14:43

Question: If I change the width or height in the IMG-Tag, the browser resizes the image. So why I need your plugIn?

It would be great if you give 1 example for the usage of the plugin. Don’t you think so?

#4 LeonB on 05.24.08 at 23:38

@Roger: please look at: http://www.vanutsteen.nl/2008/05/24/images-why-you-need-com_resize/

#5 Robert DeBenedictis on 09.11.08 at 18:36

Hi,
I think com_resize is great. There are two things that would
make it better for me. The first is that I would like it to work
with images where the src attributes uses single quotes. You
can do that by modifying preg_match_all() in resize.php on
line 28 from this:

preg_match_all(‘##isU’, $text, $image_matches);

to this:

preg_match_all(‘##isU’, $text, $image_matches);

The other feature request is for com_resize to work with images
when the width is specified but the height is not (it works fine,
though, when the height is specified but the width is not). To
do this you just need to initialize $dimensions before the two
conditionals that set the width and height variables:

// added this fix for when width is specified but height is not
$dimensions = “”;

Thank you for building com_resize.

Robert

#6 LeonB on 09.11.08 at 21:00

@Robert: thank you for you comment. I’ve added the sinqle/double quotes fix. Although the regexps in your post are exactly the same :)

Feature number two: the height/width problem. Well, it works for me ™. If you have some html-code to demonstrate what’s going wrong I’ll update it. But I can’t find the mentioned flaw.

Version 0.1.3 is now available !

Leave a Comment