diff --git a/public/js/pimcore/settings/thumbnail/item.js b/public/js/pimcore/settings/thumbnail/item.js index 21e6d73cd..c43b079ff 100644 --- a/public/js/pimcore/settings/thumbnail/item.js +++ b/public/js/pimcore/settings/thumbnail/item.js @@ -178,6 +178,16 @@ pimcore.settings.thumbnail.item = Class.create({ xtype: "container", html: "(" + t("rasterize_svg_info_text") + ")", style: "margin-bottom: 20px" + }, { + xtype: "checkbox", + name: "useCropBox", + style: "margin-bottom:0", + boxLabel: t("use_cropbox") + " (Ghostscript)", + checked: this.data.useCropBox + }, { + xtype: "container", + html: "(" + t("use_cropbox_info_text") + ")", + style: "margin-bottom: 20px" }, { xtype: "checkbox", name: "preserveAnimation", diff --git a/translations/admin_ext.en.yaml b/translations/admin_ext.en.yaml index 2d0515cd3..c6457fa0d 100644 --- a/translations/admin_ext.en.yaml +++ b/translations/admin_ext.en.yaml @@ -185,6 +185,10 @@ rasterize_svg: Rasterize SVGs rasterize_svg_info_text: >- SVGs get automatically rasterized when a transformation other than resize or scale by width/height is used. +use_cropbox: Use Cropbox +use_cropbox_info_text: >- + Sets the page size to the CropBox rather than the MediaBox, useful to exclude + some margins and non-content areas. preserve_animation: Preserve animations for GIF preserve_animation_info_text: >- Supported transformations are: Frame, Cover, Contain, Resize, ScaleByWidth,