1
4images code on GitHub Click here to visit GitHub.
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
On my test site (fresh 4images with the code above) it creates 154x104 thumbnails no matter what size and dimensions of the original image. Make sure you've inserted the code ABOVE and not BELOW
On my test site (fresh 4images with the code above) it creates 154x104 thumbnails no matter what size and dimensions of the original image. Make sure you've inserted the code ABOVE and not BELOWYupp,
$width_height = get_width_height($dimension, $image_info[0], $image_info[1], $resize_type);
$resize_handle = "resize_image_".$convert_options['convert_tool'];
// custom added line between here
global $config;
$width_height = array("width" => $config['max_thumb_width'], "height" => $config['max_thumb_height']);
// and here to make max thumb size
if ($resize_handle($src, $dest, $quality, $width_height['width'], $width_height['height'], $image_info)) {
@chmod($dest, CHMOD_FILES);
return true;
}
else {
return false;
what is the reason about this size :The reason for the size is because I have another site where I use thumbnails from my 4images site. And if images are in different sizes it will not look good....
and nice two small images. i need a lupe to see anything
In includes/image_utils.php find:Hmmm... seems to work a bit better, I mean it's not totally out of correct size anymore, but it still doesn't stretch it to always be 154x104. Thanks though
if ($resize_handle($src, $dest, $quality, $width_height['width'], $width_height['height'], $image_info)) {
Insert above: global $config;
$width_height = array("width" => $config['max_thumb_width'], "height" => $config['max_thumb_height']);
Hi,Quotefixed size of 154x104and how do you thing is this possible with images in this two upload formats:
1024x768
768x1024
in 4images settings you can only fix one side from the image
Two fix sides is not possible in standard script
And i can't remember about a mod for this...
Kurt
In includes/functions.php find two times:Hey,
$width_height = (!empty($image_info[3])) ? " ".$image_info[3] : "";
Insert below:
$width_height = (!empty($image_info[3])) ? " width=\"154\" height=\"104\"" : "";
Thanks, I tried that other command line and it worked very well tooAnyone?
But I have another problem, how can I make thumbnail fixed size, so called "stretch to fit"? It doesn't matter what the original picture looks like, I want to always have a picture with width: 154 and height: 104. Is this possible?