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.
A blog on rails, php, computing, my bass guitar and stuff
April 27th, 2008 | development, PHP, Uncategorized
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 ↓
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
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.
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?
@Roger: please look at: http://www.vanutsteen.nl/2008/05/24/images-why-you-need-com_resize/
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
@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