Jump to content

Image Cropping in Editor not working with Adaptive Images


Stefanowitsch
 Share

Recommended Posts

When using the Adaptive Images Plugin the cropping tool in the Backend does not work correctly.

When selecting an area in the image and "save crop" the result kind of weird. The Picture gets cropped but the cropped image does not contain my selection. 

See Picture 1: Selection

Picture 2: The crop result.

Since Adaptive Images is very popular maybe some of you have encountered this problem, too....

Bildschirmfoto 2016-08-09 um 23.07.26.png

Bildschirmfoto 2016-08-09 um 23.07.41.png

Link to comment
Share on other sites

  • 3 weeks later...

To everyone that has encountered the same problem, here is the simple solution:

You have to block the Adaptive Images access to the image folder when working in the PW backend.  Go to your htacess file and edit this line of code in the Adaptive Images block like this:

# don't apply the AI behaviour to images inside AI's cache folder:
RewriteCond %{REQUEST_URI} !ai-cache
RewriteCond %{QUERY_STRING} !nc

Background: I noticed that whenever an image is displayed in the backend, PW add's a parameter called "nc" to the file. I use this parameter to identfy when i DO NOT want Adaptive Images to scale the image.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...