![]() |
|
issue with i.php ? - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: General support (https://forum.zenphoto.org/forum-4.html) +--- Thread: issue with i.php ? (/thread-11396.html) |
issue with i.php ? - vincent3569 - 2013-10-04 hi, before my upgrade to 1.4.5 and Imagick, the following url was working :
for now, it doesn't work anymore and I have to use this url : I have to use [b]w[/b] ("width" without using a "hight") rather than [b]s[/b] ("size" to set longer size of picture, without seting "width" or "hight"). is there an issue somewhere ? Quote:int $size: the size of the image to have $width, and $height are used in determining the final image size. At least one of these must be provided. If $size is provided, $width and $height are ignored. If both $width and $height are provided, the image will have those dimensions regardless of the original image height/width ratio. (Yes, this means that the image may be distorted!) issue with i.php ? - acrylian - 2013-10-04 If you use "s" that means a non cropped image. Actually if using cropped images you always should set width and height plus cropwidth and cropheight. issue with i.php ? - vincent3569 - 2013-10-04 the 1st syntax was working when I was with 1.4.4.5 (and GD) but doesn't work with 1.4.5.2 (and Imaginck) : the picture is cropped but stays with initial proportions (1100x260, in my example) If I set "width", "cropwidth" and "cropheight", it work without "hight" being set, but reverse case (only set "hight", "cropwidth" and "cropheight") doesn't work. issue with i.php ? - acrylian - 2013-10-04 Best you open a ticket then. issue with i.php ? - sbillard - 2013-10-04 Are you creating these links directly or using one of the custom image functions? If the former you are doomed to failure. Among other things there is a required security parameter now. If the former, what are is the function call and its parameters? Also, you should try like graphics libraries to be sure that the problem is not with the library instead of the release. As acrylian has said nothing has changed with the image processing. issue with i.php ? - vincent3569 - 2013-10-08 hi with that, correct cache image is generated, you can see example here : http://www.vincentbourganel.fr/news/nd-400-filter?locale=en_US but as told before, when I use i.php, I have to set in other hand, in a page, I use it is certainly the most important that Zenpage functions are working properly. I will have a try with GDlibrary rather than Imagick,to see if something changes. issue with i.php ? - acrylian - 2013-10-08 See my answer on the other topic. If you need to change the size, re-embed it via tinyZenpage. issue with i.php ? - vincent3569 - 2013-10-08 I don't know if something changes with image processing, but in fact, there are differences between 1.4.4.8 and 1.4.5.5 :
In first case, I have set only 'size' to resize a cropped picture (but in fact, if I set only 'width', the result is the same). In last case, I have to set 'width' rather than 'size' to resize a cropped picture (only 'size' doesn't work). issue with i.php ? - acrylian - 2013-10-08 Setting only size means always uncropped images actually. That is how the defaultsize image is created, if size is longest or smallest size is an option. If you want to crop you actually need to set width/height and cropwidth/height. The best is really to use the class methodes as there is sometimes a bit more calculating involved. issue with i.php ? - sbillard - 2013-10-09 I don't know what might have changed, but I do note that your parameters are pretty much self contradictory. You set the size of the image to 800 yet you want it to be 1100x260 when cropped. I do not think this makes any sense as that cropped image is definitively larger than the size request. Have you tried to see if things work if the size is as large as the crop? issue with i.php ? - vincent3569 - 2013-10-09 it is the opposite: I want a resized picture of 800 (in longest size) from a crop of 1100x260 of my original picture. |