• Resolved MisterR

    (@mister_r)


    Hi Volkmar,

    I have moved a website to the client’s server (with custom configuration) and Crop-Thumbnails is not cropping images any more. I can open a popup, adjust a rectangular, press “Crop” button. But the image doesn’t change.

    I suspect one of the required PHP libraries is not installed. Can you tell what libraries does it need for proper work?

    Any other ideas about this issue are welcomed.

    https://www.ads-software.com/plugins/crop-thumbnails/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Volkmar Kantor

    (@volkmar-kantor)

    Hi,
    its more likely that there are no rights to create files in the tmp-directory.
    The Plugin will use a directory “wp-content/uploads/tmp”. The PHP-Script has to have read-write access to this directory.

    You should also try to upload a file with media-dialog. If this failes, either the php haven’t enougth rights to save or you have missing php-library (which is really uncommon – i uses the internal wordpress-functions for cropping and saving – and this functions can use multiple different image-libraries).

    Good luck

    Thread Starter MisterR

    (@mister_r)

    I can upload files via WP media uploader, folder wp-content/uploads/tmp exists and have rights 777.

    That’s why I’ve thought about PHP libraries.

    Thread Starter MisterR

    (@mister_r)

    Btw, I can edit images using built-in tools. Does it give any new ideas?

    Plugin Author Volkmar Kantor

    (@volkmar-kantor)

    hmmm, thats strange … and interesting.

    Ok, it shouldnt be the php-libraries if you can use the built-in tools.
    Please go to settings>crop-thumbnails and activate the debug-options.

    That’s how you can debug (Step-by-Step for Firefox):

    1. Go to a image of your choice and open the crop-Thumbnails dialog.
    2. Right-Click inside the dialog and choose “This Frame > open in new Tab” (sorry if that not the correct words – my browser is in german language)
    3. now you should see the dialog in a full page view. Press F12 to open the Browser Developer Settings and activade the “Console”-Tab.
    4. as soon as you try to select one image in the crop-thumbnail dialog you should see a log in the console
    5. try to select one image and then click save
    6. copy and post the logs, should looks like this:
    choosed image - data Object { id: 7076, parentId: 7067, width: 1880, height: 720 } cpt-crop.js:230:1
    
    JCrop - options Object { boxWidth: 300, boxHeight: 115, trueSize: Array[2], aspectRatio: 1.81818181818, setSelect: Array[4], minSize: Array[2] } 
    
    cpt-crop.js:231:4
    Save Function Debug submitted image-data
    stdClass Object
    (
        [name] => thumbnail
        [width] => 400
        [height] => 220
        [ratio] => 1.81818181818
        [crop] => 1
    )
    
    filename:/www/htdocs/-------------/------------/wp-content/uploads/2015/12/the-file-400x220.jpg
    Plugin Author Volkmar Kantor

    (@volkmar-kantor)

    any news?

    Thread Starter MisterR

    (@mister_r)

    Hi Volkmar,

    Yeah, I agree that it is interesting ??

    Actually, it was interesting. Because before debugging and posting results I decided to go to Media Library and try to resize one of the images again. I took image that had been uploaded after migration and voila – it changed.

    I opened Filezilla and checked rights for the images. All new images automatically get rights 666, older images that have been uploaded from the staging server have 644. After changing rights to 666, older images can be recropped too. So the reason was in rights.

    Sorry for taking your time. As a small indemnification I left a 5-star feedback.

    Plugin Author Volkmar Kantor

    (@volkmar-kantor)

    I’m glad i could help you.
    Thanks for the rating.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘List of necessary libraries’ is closed to new replies.