WordPress.org

Ready to get started?Download WordPress

Forums

Image Widget
Patch to crop images (3 posts)

  1. chuso
    Member
    Posted 2 years ago #

    I have made a really simple patch to allow users to crop pictures to desired size, so that it scales to the actual width and height with no image distortion.

    You can find it here.

    Btw, Sorry for my English!

    http://wordpress.org/extend/plugins/image-widget/

  2. Peter Chester
    Modern Tribe
    Plugin Author

    Posted 2 years ago #

    Awesome work @chuso! Honestly I've tried to keep this plugin as simple as possible so i have to think really hard before adding new features. I almost wonder if really what would be best is NOT to have a crop check box but instead, if a user sets a height and width that are not proportional to the image dimensions, that the plugin uses croping instead of stretching.

    That way there's no more UI, everything works as it always has, except if you enter a width that is not proportional to the height.

    Thoughts?

  3. chuso
    Member
    Posted 2 years ago #

    So, to keep the UI clean, it would be nice this system:

    • User only fills in width - Automatic height. No crop
    • User only fills in height - Automatic width. No crop
    • User fills in both width and height - If they are not proportional to the image dimensions, the plugin uses croping instead of stretching. As far as I know, when cropping is enabled image_resize performs this automatically.

    Thanks for considering my request! :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic