• Resolved pickme

    (@pickme)


    Hello!

    Is it possible to increase the image width to the specified max-width in order for a rectangle image to become square? Sort of canvas functionality?

    example:
    Imsanity settings: max-width 730px max-height 730px

    Original image to be uploaded: w 330px h 890px

    Resize process by imsanity:
    (1) Resize height from 890px to 730px
    (2) Increase canvas horizontally from 330px to 730px

    Is this possible?
    If not, could you please suggest a plugin with which I could manually do this after imsanity resize process?

    Thank you

    • This topic was modified 5 years, 11 months ago by pickme.
    • This topic was modified 5 years, 11 months ago by pickme.
    • This topic was modified 5 years, 11 months ago by pickme.
    • This topic was modified 5 years, 11 months ago by pickme.
    • This topic was modified 5 years, 11 months ago by pickme.
    • This topic was modified 5 years, 11 months ago by pickme.
    • This topic was modified 5 years, 11 months ago by pickme.
Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author nosilver4u

    (@nosilver4u)

    Sorry, increasing the canvas is not possible with Imsanity, and I’m afraid I don’t know any such plugin. You can get Imsanity to crop rather than scale, but the canvas issue would have to be handled elsewhere.
    If anyone else knows of such a plugin, feel free to comment!

    Thread Starter pickme

    (@pickme)

    How can I crop rather than scale? I don’t see a setting for this.

    example for cropping:

    Imsanity settings: max-width 730px max-height 730px
    Original image to be uploaded: w 730px h 890px

    Imsanity will crop the height from 890px to become 730px?

    Thanks

    • This reply was modified 5 years, 11 months ago by pickme.
    • This reply was modified 5 years, 11 months ago by pickme.
    Plugin Author nosilver4u

    (@nosilver4u)

    It’s not in the UI, but available via a filter to override the default scaling behavior. You would add this code to a simple plugin or the theme’s functions.php:

    add_filter( 'imsanity_crop_image', '__return_true' );

    Thread Starter pickme

    (@pickme)

    Thank you!

    For manually editing an image within WordPress, adding canvas to an image can be done with this plugin:

    https://ww.wp.xz.cn/plugins/wp-paint/

    • This reply was modified 5 years, 11 months ago by pickme.
Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Canvas / increase size’ is closed to new replies.