#6928 (Limit size of the image in the short preview)
by Luc Saffre · in Developers · assigned to Luc Saffre
Résumé
When I paste a screenshot into a comment, then it takes 100% of the width. In the dashboard on my notebook that's almost the whole screen.
Concepts sous-jacents
Commentaires
- 3 semaines ago by Luc Saffre in reply to Luc Saffre about #6928 (Limit size of the image in the short preview) : It might be confusing, but the explanation is: "upload" is the default memo command, which inserts a link that leads to the detail window of this database row. Most used is the "file" command, which inserts this upload file as an image (or as a video player, or as a download widget... depending on t...
- 3 semaines ago by Luc Saffre about #6928 (Limit size of the image in the short preview) (1 reply) : It works pretty well. TODO: there are currently four different memo commands to insert an image into a text: upload, file, ref and include. That's confusing.
- 3 semaines ago by Luc Saffre about #6928 (Limit size of the image in the short preview) : Jan, for your background, learn what the bs4 package does: beautiful-soup-4.readthedocs.io/en/latest/# and look at this file lino/lino/modlib/uploads/models.py
- 3 semaines ago by Luc Saffre about #6928 (Limit size of the image in the short preview) : Example of a comment with a screenshot:

- 3 semaines ago by Luc Saffre about #6928 (Limit size of the image in the short preview) : I added a new plugin setting And then started to convert the ImageFormats choicelist from using inline style to class. There was already a first class lino-img-full in local.css, now I'll convert the other formats as well.
- 3 semaines ago by Luc Saffre in reply to Luc Saffre about #6928 (Limit size of the image in the short preview) : There is an easier solution: write an action that toggles how images are stored in a text field: either as memo commands or as img tags.
- 3 semaines, 1 jour ago by Luc Saffre about #6928 (Limit size of the image in the short preview) (1 reply) : The quill editor should recognize img tags that have one of the Lino image classes and make these images not resizable and not floatable because with these classes the styling is done outomatically.
- 3 semaines, 1 jour ago by Luc Saffre about #6928 (Limit size of the image in the short preview) : The sanitizer defined in uploads doesn't modify the style and the class of the img tag. This is not the right place to change it. Unless we say that it should replace the img tag by a memo command. But actually we should handle the sizing and classes topic already in the Quill editor.
- 3 mois, 1 semaine ago by Luc Saffre about #6928 (Limit size of the image in the short preview) : This can wait until when Jane also has publisher enabled.
- 3 mois, 1 semaine ago by Luc Saffre about #6928 (Limit size of the image in the short preview) : Created new Ticket #6928 (Limit size of the image in the short preview).