• Resolved grape

    (@grape)


    I recently updated Post Thumbnail Editor, and now I can’t seem to over write the aspect ratio.. I used to be able to crop and reposition them (in previous version of the plug-in) to say, a square, etc. Now this is no longer working.
    I’m using the Arras theme..the one im having problems with specifically is the quick-preview-thumb.
    Anyone know how to disable these parameters being handed to the plugin? Please help..the images are looking horrible. Any info is appreciated!!

    https://www.ads-software.com/extend/plugins/post-thumbnail-editor/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author sewpafly

    (@sewpafly)

    To disable the aspect ratio, use the Options Button. This exposes a small menu. If you click the small counter-clockwise icon next to the aspect ratio box, this will clear the set aspect ratio. (That icon isn’t very intuitive… I should figure out a better one)

    Also, if you know the aspect ratio that you want, you can enter the value in the box there (i.e. use width/height → a square is ‘1’).

    Thread Starter grape

    (@grape)

    Thank you for the reply, perhaps I wasn’t being clear. I realize you can do that in the editor, but it still passes the default setup for the thumbnail, when an aspect ratio is set by the theme. This makes the image distorted, because while i may have cropped it to more square, it stretches it out to fit the size parameters set by the theme. In an earlier version of the plugin, i could crop to different dimensions and it worked fine. Is there anyway I can modify the post-thumbnail-editor/php/functions.php or one of those files, so that the quick-preview-thumb isn’t handled by the theme? – where the C (in W H C) isn’t set to true? Would that fix it? This is a great plugin btw, which i’ve appreciated using over the years.

    Plugin Author sewpafly

    (@sewpafly)

    I’m sorry, I don’t understand what’s going on at all.

    Perhaps a discussion of how PTE uses the aspect ratio will help?

    1. Without any thumbnails selected, the aspect ratio is set to the base images width/height.
    2. When one or more thumbnails are selected (crop value for all is false): aspect ratio is disabled.
    3. When one thumbnail is selected (crop is true): aspect ratio is thumbnail width/thumbnail height
    4. When two or more thumbnails are selected (one crop true, one crop false): the aspect ratio is set to the cropped thumbnails width/height
    5. When two or more thumbnails are selected (two or more crops are true): if the cropped thumbnails share the same ratio, then the aspect ratio is set to this value, else the aspect ratio is disabled

    Do you disagree with any of these rules? Or are you seeing behavior that doesn’t conform to these rules?

    If you agree with all these rules and the behavior appears consistent with these rules, you’ll probably want to check the theme settings to change the size/crop of the post thumbnails that you’re seeing. Typically if a theme creates a post thumbnail and wants the crop setting set, there is a reason for that.

    Thread Starter grape

    (@grape)

    thank you very much for you response(s) i do appreciate. The issue is that even when I have the aspect ratio disabled, it stretches out the image to the size /dimensions set in the theme (Arras) for those particular thumbs. The site Im using it on was done in ’10 or so there is a lot of content I don’t want to mess with (as far as changing the theme setting). What Im confused about is that in the past using this plugin, I could crop an image to a square (or whatever variation depending on the image) and it would crop it to that size (in effect, overriding the themes setup) and now it’s not.

    Plugin Author sewpafly

    (@sewpafly)

    Ha! Well, that behavior sounds like there was a bug in PTE! If you remember what version of the plugin you were using you can download the old one from here: https://www.ads-software.com/extend/plugins/post-thumbnail-editor/developers/, then you can install it back. i’m sorry that I fixed that bug.

    Alternately, I would suggest you scan through the arras theme code to find where there’s code that resembles this (the width and height values will probably be different and the crop setting might be a variable as well):

    add_image_size( 'quick-preview-thumb', $width, $height, true )

    and change the true to false. That should allow the previous behavior.

    Thread Starter grape

    (@grape)

    Funny! (and too bad for me ) . I wish I could remember what version it was! I tried 1.0.5, but it didn’t seem compatible with – WP 3.5.1 . never showed up. Thanks- I’ll dig around tomorrow and see if your above mention works – fingers crossed.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘can you disable aspect ratio handed down from theme?’ is closed to new replies.