How do I change which part of an image is visible on my page without losing resolution? For example, instead of this:
https://michaelm856.sg-host.com/wp-content/uploads/2024/02/IMG_1448.jpeg
I want to crop some part of the image so only part of it is visible.
By the same token, is there a way to change where the centre point of the image is?
]]>I have an error when cropping an image on my website; the message on the UI is “There was an error cropping your image”.
Here is what I see in the logs:
PHP Warning: file_put_contents(https://cdn.{domain}.com/wp-content/uploads/cropped-image.jpeg): Failed to open stream: HTTP wrapper does not support writeable connections in /home/{path}/public/wp-includes/class-wp-image-editor-imagick.php on line 860″ while reading response header from upstream, client: {ip}], server: {server}}.
It looks like the cropping function tries to use the cdn url instead of a filename with :
file_put_contents( $filename, $image->getImageBlob() )
Which causes the error as file_put_contents expects a file path.
How can this be addressed? The imagick usage is essential to my application.
Thank you for your help!
]]>Is there a way to have the images shrink, instead of cropped?
]]>I call country categories using a snippet that works flawless. It dispays categories as flag icons.
I was on a local install, everything worked
I migrated to public server and thumbs are now crop’ed in landscape. (Bottom of page)
I tried regenerating in Perfect Images. Same problem.
I installed Regenrate Thumbnails plugin. Problem was fixed.
I then reinstalled Perfect Images and made a new regenerate all and the problem returned. Why does it crop and pass these freek icons?
I will leave the eroneous icons for 12 hours and then regenerate to fix in the other plugin.
Please advise how to work around this. Delete your plugin or…..
Thx
]]>I have migrated my site from local to public server. I have a flag icon pack that displayed as squared. Inside Media Library, I see they have now been cropped and I no longer see the top and bottom.
I am using them for categories and they display cropped also on my site. What do I do. Is the original gone, can I recover/retrieve?
Thx
]]>For example, if an image has a height of 800 pixels and a width of 600 pixels, and another image has a height of 600 pixels and a width of 800 pixels, upon uploading both images, the first image would be automatically resized to a height of 600 pixels and a width of 450 pixels.
Is this feature currently available or planned for future implementation?
Thank you.
]]>