Alchemy CMS - Cloudinary - Image crop

93 Views Asked by At

In Alchemy CMS how can I use the Cloudinary feature for get the image in the size that I want?

I need this for:

  • a specific image, I mean that, one image could be 400x300 and another could be 200x200
  • for all the images of the same element

How can I do it?

In the element definition, in elements.yml, I can use the settings property:

- name: content_block
  contents:
  - name: title_text
    type: EssenceText
    default: :title_text_sample
  - name: picture
    type: EssencePicture
    settings:
      size: 400x300
      crop: true
  - name: multi_line_text
    type: EssenceRichtext

but this is the same for all contents and I think that in this way the resize is done by the Alchemy server and not by the cloudinary.

1

There are 1 best solutions below

1
Matt Greene On

Is there a way to edit the URLs manually? If so you can change the size of the images on the fly. For example, http://res.cloudinary.com/demo/image/upload/w_200,h_200/sample