Skip Navigation

[Gelöst] image crop vertical in image field

This support ticket is created vor 5 Jahren, 8 Monaten. 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.

Heute stehen keine Supporter zur Arbeit im Werkzeugsatz-Forum zur Verfügung. Sie können gern Tickets erstellen, die wir bearbeiten werden, sobald wir online sind. Vielen Dank für Ihr Verständnis.

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)

Dieses Thema enthält 5 Antworten, hat 2 Stimmen.

Zuletzt aktualisiert von Luo Yang vor 5 Jahren, 8 Monaten.

Assistiert von: Luo Yang.

Author
Artikel
#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:
versteckter Link
orgiginal:
versteckter 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.