Support » Plugin: AutoNav Graphical Navigation and Gallery Plugin » [Plugin: AutoNav Graphical Navigation and Gallery Plugin] Cropping from the top-down

  • Resolved zorbs

    (@zorbs)


    Cropping seems to start from the center of an image shooting outwards.
    Can cropping commence from the TOP of the image instead?

    This would be ideal in some portrait photos or website screenshots, where the top part should be part of the thumbnail.

    A global setting to set this throughout the plugin would suffice.

    Thank you!

Viewing 3 replies - 1 through 3 (of 3 total)
  • zorbs

    (@zorbs)

    For now, I have added two lines above imagecopyresampled(..), on or about line 115, which forces cropping to start from the top left (just for the default “sharp” setting of “smooth”.
    Hacked segment shown below:

    $src_x = 0;
    $src_y = 0;
    imagecopyresampled( $to_image, $from_image, $dst_x, $dst_y, $src_x, $src_y,
    $dst_w, $dst_h, $src_w, $src_h);
    }

    Ideally, this should be a setting in the admin.

    Plugin Author wlindley

    (@wlindley)

    Thanks… I am working on 1.3.9 and hope to include this.

    Plugin Author wlindley

    (@wlindley)

    The current version of AutoNav supports the crop parameter as follows:

    • crop=”0″ Fits image into size, maintaining aspect ratio and centering image
    • crop=”1″ Crops images to fit exact size
    • crop=”2″ Crops image from upper-left
    • crop=”3″ Crops from top middle (useful with head-and-shoulders portraits)

    The same values may be used in as the default in the Admin screen.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: AutoNav Graphical Navigation and Gallery Plugin] Cropping from the top-down’ is closed to new replies.