Uploaded image for project: 'Sakai'
  1. Sakai
  2. SAK-44785

Convert ckeditor data uri base64 images to Resources linked images

    XMLWordPrintable

    Details

      Description

      https://groups.google.com/a/apereo.org/g/sakai-dev/c/ZR8VEOXMg3c/m/HsITfWsRCAAJ

      Is there any way to NOT have ckeditor save pasted in images (or source with base64) as an embedded base64 image? And instead, automatically add the image to resources and have the ckeditor source link to it?

      This plugin looks like it might have some of those features:

      https://ckeditor.com/cke4/addon/imagepaste

      In our case, we have a class that uses Etudes Meme - Assignments, Tests, Surveys (but I suspect this could happen with Samigo too) and it has 1000s of questions in several question pools. Many of those questions contain base64 images, which I suspect the instructor pasted into ckeditor. And I think because of the base64 images, we're seeing some slow queries accessing that tool for that site.

      Also, that instructor imports those tests from one semester to the next so the problem continues to happen each semester. It would be great if we could automatically convert those existing base64 images into an actual file in resources and link to it from the test. (otherwise, we'd have to ask the instructor to manually convert each image into a resources image link)

      I also suspect that many sites have pasted in bas64 images into their Overview tool -> Worksite Information.

      Further, when I've analyzed Heap Dumps, there are lots of objects in memory that look like base64 images, which I suspect come from the examples above.

        Gliffy Diagrams

          Zeplin

            Attachments

            1. drag_and_drop.png
              drag_and_drop.png
              198 kB
            2. resources_folders.png
              resources_folders.png
              83 kB
            3. UploadTab.png
              UploadTab.png
              54 kB

              Activity

                People

                Assignee:
                davidpbauer David P. Bauer
                Reporter:
                austinUH Austin
                Votes:
                3 Vote for this issue
                Watchers:
                12 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:

                    Git Integration