I've got a joomla website using the virtuemart module.

Things I have are images and pictures that are located on the other domain.

Virtuemart provides me with 2 options:

1 - search for image, a thumbnail is going to be automaticly produced

2 - enter a URL for any image that is exterior located, this method does not possess a re-size option

Generate an income have overcome this issue (with help ofcourse) would be to set a height="" attribute towards the img tag. The only issue is the fact that whenever a large image is loaded ie: 500 x 700 px, the so known as thumbnail needs time to work to load, this really is logical.

Can someone produce options the way a image from the url could be "resized" with as outcome the thumbnail takes a shorter period to load?

Personally I believed about a method to reduce the image excellence of the resized image which develops from a url having a code, css or other things?

I understand it has less related to fixing a code, however i know everyone learn more options i quickly do.

You are able to take advantage of imagecopyresampled purpose of PHP.

Sample program (source: php.internet)

<?php
// The file
$filename = 'http://valplibrary.files.wordpress.com/2009/01/5b585d_merry-christmas-blue-style.jpg';
$percent = 0.5; // percentage of resize

// Content type
header('Content-type: image/jpeg');

// Get new dimensions
list($width, $height) = getimagesize($filename);
$new_width = $width * $percent;
$new_height = $height * $percent;

// Resample
$image_p = imagecreatetruecolor($new_width, $new_height);
$image = imagecreatefromjpeg($filename);
imagecopyresampled($image_p, $image, 0, 0, 0, 0, $new_width, $new_height, $width, $height);

// Output
imagejpeg($image_p, null, 100);
?>