Image_fill : wrong dimensions

See all posts Reply

Image_fill : wrong dimensions new!
by Cyril, 12 years, 1 month ago
Hi,
In advance excuse my english, i'm french.

I'm trying to generate copies of images, resizing them with particular dimensions (700x990px). My problem occurs when width and height of source image are smaller than 700x900. I tried using image_fill = true, but I can't obtain images of desired dimensions : either width or height is wrong on destination file.
Do you have a trick to get images of exact dimensions ?

Thanks.Reply
Re: Image_fill : wrong dimensions new!
by colin, 12 years, 1 month ago
Try using image_ratio_fill or image_ratio_crop. Else, set image_x and image_y and use image_ratio.Reply
Re: Image_fill : wrong dimensions new!
by Cyril, 12 years, 1 month ago
OK, thanks. Unfortunately, i've forgotten an important detail : in cas the source image is smaller than 700x900, i don't want the image to be resized, but only filled with a background-color to fit the desired dimensions.
With image_x =700, image_y=900, and image_ratio_fill=true, the generated file have correct dimensions, but my little source image is resized, so the result is pretty bad.Reply
Re: Image_fill : wrong dimensions new!
by colin, 12 years, 1 month ago
In this case, you need have different settings depending on the image dimensions. See for instance this recent thread.Reply
Re: Image_fill : wrong dimensions new!
by Cyril, 12 years, 1 month ago
I've finally succeded with image_crop and some calculations. Thanks
Best regards,Reply