Skip Navigation

[Resolved] image crop vertical in image field

This support ticket is created 5 years, 8 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Our next available supporter will start replying to tickets in about 0.95 hours from now. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

This topic contains 5 replies, has 2 voices.

Last updated by Luo Yang 5 years, 8 months ago.

Assisted by: Luo Yang.

Author
Posts
#1214916

Thats my Code

[types field='foto' title='%%TITLE%%' alt='%%ALT%%' size='custom' width='300' height='230' crop='true' crop_horizontal='center' crop_vertical='top' index="0"][/types]

but its not cropping from the top?

#1215250

Hello,

I assume we are talking about a custom image field "foto" created with Types plugin, I have tried the same shortcode as you mentioned above in my localhost, and it works fine, there isn't same problem as you mentioned above:
but its not cropping from the top

Please check these:
1) Your webserver satisfies Toolset requirements:
https://toolset.com/toolset-requirements/

2) Make sure you are using the latest version of Toolset plugins, you can download them here:
https://toolset.com/account/downloads/

3) In case it is a compatibility problem, please deactivate other plugins, and switch to wordpress default theme 2019, and test again

4) Check if there is any PHP errors in your website:
https://toolset.com/documentation/programmer-reference/debugging-sites-built-with-toolset/#php-debugging

#1215314

The Crop DOES work but the crop from top does not work

here is the cropped image:
hidden link
orgiginal:
hidden link

Its from a repeatable image field and the code is

[types field='foto' title='%%TITLE%%' alt='%%ALT%%' size='custom' width='300' height='230' crop='true' crop_horizontal='center' crop_vertical='top' index="0"][/types]

#1215330
image-crop.JPG

Thanks for the details, I can see the problem in my localhost, but where and how do you get the attributes "crop_horizontal" and "crop_vertical" in image field shortcode, I have tried both with UI there isn't options for attribute "crop_horizontal" and "crop_vertical", see screenshot image-crop.JPG

See our document:
https://toolset.com/documentation/customizing-sites-using-php/functions/#image

No such kinds of options )"crop_horizontal" and "crop_vertical"_ for image shortcode.

You can add a feature request for it:
https://toolset.com/home/contact-us/suggest-a-new-feature-for-toolset/

Our developers will evaluate it.

#1215335
Bildschirmfoto 2019-03-18 um 09.46.10.png

or is this only possible with the feautured image?

#1215340

Yes, you are right, those attributes are available only for feature image, they are not available for custom image field.