Announcement

Collapse
No announcement yet.

Resizing of uploaded images (image field)

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Resizing of uploaded images (image field)

    Good afternoon,

    Is there a way of resizing the uploaded image of an image field?

    What i will like to achieve is that when you upload a new image, the system will automatically resize the image to a custom size and with custom quality.

    For example all uploaded images will be resized to 1920*1080 in JPG format with a quality of 85%

    Thanks,

    Nuno

  • #2
    Nope, will require coding.

    Not sure if it even possible with the current extensions/PHP dependency. I know resize is "possible" using the PDF Template and EspoCRM can also generate thumbnails for attachment but that is not the same as Image conversion which is what you trying to do.

    Comment


    • #3
      Hello,

      not looked library in github .. but it can be done with a hook afterSave, just check if image is image

      PHP Image Processing. Contribute to Intervention/image development by creating an account on GitHub.

      Intervention.io is the creator of solid and well-designed open source software in PHP.

      Intervention.io is the creator of solid and well-designed open source software in PHP.


      This library seemt better : https://github.com/spatie/image
      Last edited by item; 08-17-2020, 05:55 PM.

      Comment

      Working...
      X