strapi-plugin-ckeditor icon indicating copy to clipboard operation
strapi-plugin-ckeditor copied to clipboard

How to return image height / width

Open hexionaut opened this issue 2 years ago • 4 comments

Hi !

I am using Strapi as an API and a Next.Js front-end. I would like to make some optimization on my performances.

For that, I need to know the height and width of the image I send over my content.

I would like to know if it's possible somewhere in the code ? Event if I have to fork the repo.

Otherwise, I could go for an async call who search the media by it's URL etc ... But would prefer to do it another way.

Thanks !

hexionaut avatar Jul 06 '23 11:07 hexionaut

Hey @anthonyhexium, thanks for reaching out. We have a project in progress on the CKEditor 5 side with the support of the image height (ckeditor/ckeditor5#14146). When we finish it, we will need to update the strapi plugin for this.

Witoso avatar Jul 07 '23 10:07 Witoso

Thanks for answering @Witoso ! Any idea on when we can hope this to get done ?

hexionaut avatar Jul 07 '23 12:07 hexionaut

 I would say that we are in the final stages, but it still requires a thorough testing phase, as this is a significant change on our side. And then it would require the update of Strapi plugin on our side (or you will fix it in your code). Follow the main issue, updates will be posted there.

Witoso avatar Jul 10 '23 10:07 Witoso

Any update on this?

Waffe avatar Mar 07 '24 01:03 Waffe