- π―π΄Jordan Rajab Natshah Jordan
David, Thank you for starting this conversation.
Using the module in many number of projects.- Using the Image Resize Filter only for migrated images from other systems, or from a very old D sites.
- Managing CKEditor with media embed after Drupal 8/9 and now 10 .. not allowing to upload image files directly into the Text Format with CKEditor 4
At this time the module is having issues with CKEditor 5 default image placement system. in both Drupal ~9.0 and ~10.0.
The issue is with the width value of
percentage width
orphysical pixel width
.Example test case with Drupal 10 and CKEditor 5
<p> Image resized 1 </p> <p> <img src="/sandboxes/drupal10image_resize_filter_1__test/web/sites/default/files/inline-images/coworking-2.jpg" data-entity-uuid="594b1d41-a2eb-4b59-bcde-62f1674bcbf7" data-entity-type="file" alt="Test caption" width="38.34%" height="198"> </p> <p> Image resized 2 </p> <p> <img src="/sandboxes/drupal10image_resize_filter_1__test/web/sites/default/files/inline-images/coworking-2.jpg" data-entity-uuid="594b1d41-a2eb-4b59-bcde-62f1674bcbf7" data-entity-type="file" alt="Test caption" width="59.62%" height="330"> </p> <p> Image resized original size </p> <p> <img src="/sandboxes/drupal10image_resize_filter_1__test/web/sites/default/files/inline-images/coworking-3.jpg" data-entity-uuid="dbb9034e-2b53-463f-9583-feba012f5ece" data-entity-type="file" alt=""> </p>
In CKEditor 5 - Edit
After Saving with a text format which uses CKEditor 5
My opinion on this module will be best used for CKEditor 4 only not with CKEditor 5
- π―π΄Jordan Rajab Natshah Jordan
Had Real physical testing round for Image Resize Filter 1.0.x-dev with Drupal ~10 and Drupal ~9
With CKEditor 4 and CKEditor 5
at π Automated Drupal 10 compatibility fixes Fixed - πΊπΈUnited States robbt
I'm interested in determining the best way to replace this module with Media + responsive image styles. Relying upon inline images even after migrating from Drupal 7. I can't seem to find an easy way to convert existing inline images to media images. This module File to Media β provides a way to create media items from existing files but it doesn't in-turn replace the existing files with media tokens.
The media migration module β appears to be able to do this based upon this issue β . But I'm not sure how one would go about using a migration module like this for a site that has already been migrated to Drupal 9/10. Perhaps that is the best approach.
The way that makes the most sense to me would be to do the conversion inside of CKEditor 4/5 where you could edit a text area such as the Body field containing inline images and select the images and click "convert to media" and it would convert them into media. Going in and editing the HTML or attempting to delete the image and then insert it again as a media would be somewhat painful for large sites but it is the only apparent solution I've found while searching for a solution for existing sites.