just a question
when using extra imageplus
What I want:
crop the image the way you want it and then it will resize the cropped image to a specific size
I could only do this using 2x phtumb. surly there is a better way? am I missing something
where [[+options]] are w=500&h=200&f=webp&zc=1
and [[+crop.options]] is however the image gets cropped e.g sx=0&sy=0&sw=2600&sh=2200
so first pthumb renders image that was cropped by the user
2nd pthumb renders image with additional parameters so they are all the same on the website
am I missing something? as calling it 2 times cant be right
if I use 1. pthumb and call
my options will over write crop options and it does not crop right
it works using 2x phhumb calls but it feels its not right and resource intensive?
If I recall correctly, there is a problem with the
phpThumb library when you try to use
zc=1 in combination with the crop options
sh. The image gets distorted.
Take a look a this topic:
Having copied a live site to a new Gen.2 cloud with Modx-Cloud (PHP 7.4), a problem arises:
I have to disable ‘use Resizer’ for pThumb in the system settings. When using Resizer, ‘/www’ is prepended to the path to the generated images and the paramater ‘zc=1’ isn’t respected from the ImagePlus template (newsImageSmall) below.
<source srcset="[[+source.src:pthumb=`[[+crop.options]]&h=344&w=682&zc=1&q=85&f=webp`]] 2x,
thanks I will investigate
Generally, the images will not lose quality when cropping. You can use photoshop to crop the image as you want. But remember, the image will get a quality loss when exporting. If you choose the export the original image to a JPEG image, the quality will get loss. You can choose PNG or TIFF which are image lossless formats.