Comments on: Images & why you need com_resize http://v3.vanutsteen.nl/2008/05/24/images-why-you-need-com_resize/ A blog on rails, php, computing, my bass guitar and stuff Wed, 17 Oct 2012 04:54:02 +0000 hourly 1 http://wordpress.org/?v=3.5 By: LeonB http://v3.vanutsteen.nl/2008/05/24/images-why-you-need-com_resize/comment-page-1/#comment-455 LeonB Thu, 13 Nov 2008 06:42:21 +0000 http://www.vanutsteen.nl/?p=72#comment-455 @Robert: I think you are competely right. I’ll try and have a look at it tonight and fix it. Thanks for the report!

]]>
By: Robert DeBenedictis http://v3.vanutsteen.nl/2008/05/24/images-why-you-need-com_resize/comment-page-1/#comment-453 Robert DeBenedictis Thu, 13 Nov 2008 00:41:53 +0000 http://www.vanutsteen.nl/?p=72#comment-453 Hi Leon,
I use com-resize and think it’s great.

I have WordPress installed in a /wp subdirectory.
Many of my images are in /wp/wp-content/uploads
and those work fine. But, some of my pre-Wordpress
images are in /images — those do not work.

For example, this (remote image) works:
http://transom.org/wp/wp-content/plugins/com-resize/phpthumb/phpThumb.php?src=http://www.transom.org/guests/review/200801_creature_comforts/assets/thumbnails/water_bugs_80.jpg&w=80

But, this (absolute to docroot) image does not:
http://transom.org/wp/wp-content/plugins/com-resize/phpthumb/phpThumb.php?src=/guests/review/200801_creature_comforts/assets/thumbnails/water_bugs_80.jpg&w=80

It seems that the version of phpThumbs that comes
with com-resize sets the phpThumbs ‘document_root’
to be that of the WordPress address (URL). That in
turn prevents phpThumbs from working with images
that are not under the directory where WordPress is
installed. Is that correct?

Robert

]]>
By: LeonB http://v3.vanutsteen.nl/2008/05/24/images-why-you-need-com_resize/comment-page-1/#comment-23 LeonB Tue, 27 May 2008 09:39:28 +0000 http://www.vanutsteen.nl/?p=72#comment-23 DuncanC: they are resized when the page is loaded.

I had the same problem: one of my clients (a Ducati dealer) posted hi-res pictures on their site. That’s why I created this plugin.

All you have to do to resize the images is: add an image, add a width and/or height attribute and reload the page!

I looked at the link you posted and it took this img as an example:
http://thinkpinkskips.co.uk/wp-content/uploads/2008/05/pict0002-300×224.jpg

I think the problem is that the difference between the real width/height(300×224) and the width you want (275×210) is too small. I believe the difference should be at least 12%. But you can find that number in the sourcecode (and adjust it if you want).

]]>
By: DuncanC http://v3.vanutsteen.nl/2008/05/24/images-why-you-need-com_resize/comment-page-1/#comment-22 DuncanC Tue, 27 May 2008 09:31:45 +0000 http://www.vanutsteen.nl/?p=72#comment-22 When does the re-sizing occur? When you create the post/page in WP, or when the page is loaded?

One of my clients has added pics (straight from the digital camera) to a WP page (see the Efficient Recycling page on the website link above). These are the WP Thumbnail pics, but load really slowly. I’ve installed the com_resize plugin and activated it… so how do I get the images on the existing page to re-size.

Thanks (if this “does what it says on the tin” …. your plugin will be added to all my clients sites!!!)

]]>
By: LeonB http://v3.vanutsteen.nl/2008/05/24/images-why-you-need-com_resize/comment-page-1/#comment-21 LeonB Mon, 26 May 2008 18:23:09 +0000 http://www.vanutsteen.nl/?p=72#comment-21 That’s very simple: insert an img with a width and/or height attribute and it will be automatically resized! The original image is then replaced with a link to phpThumb.php?src= and the original image will be resized.

Ow yeah: the original image will only be resized if the image-width and the width/height in the tag-attributes are different.

]]>
By: Roger http://v3.vanutsteen.nl/2008/05/24/images-why-you-need-com_resize/comment-page-1/#comment-20 Roger Mon, 26 May 2008 15:33:08 +0000 http://www.vanutsteen.nl/?p=72#comment-20 Hmmm… I think you dont understand what I need….

Question:
How do I use your resize code in wp? Please make me 1 example how you integrate the IMG tag… and resize..?

%-)

]]>
By: LeonB http://v3.vanutsteen.nl/2008/05/24/images-why-you-need-com_resize/comment-page-1/#comment-19 LeonB Mon, 26 May 2008 15:20:55 +0000 http://www.vanutsteen.nl/?p=72#comment-19 Hi Roger. Thanks for all your comments :p Else my blog would be so empty :)

I had some nice api for phpThumb planned for the next version of com_resize (nice mod_rewrite url’s).

I don’t even know how my plugin reacts if you add some phpThumb url filter’s to the image.

]]>
By: Roger http://v3.vanutsteen.nl/2008/05/24/images-why-you-need-com_resize/comment-page-1/#comment-18 Roger Mon, 26 May 2008 14:33:28 +0000 http://www.vanutsteen.nl/?p=72#comment-18 Hi Leon

Thank you for your explanations and thank you for your work but… sorry to insist. There is a copy of the phpThumb script well documented inside of your resize plugin. But no documentation how to implement any code of com_resize in wp? In your example above your using also the phpThumb code? Or is there something else..?: …wp-content/plugins/com_resize/phpthumb/phpThumb.php?src=/wp-content/uploads/2008/05/space_station.jpg&q=90&w=200″ alt=”" width=”200″/>.

:-) Thank you in advance

]]>