By default, when inserting an image from the clipboard into the CKEDITOR editor, the images are saved in PNG format and take up a lot of disk space. I have enabled PillowBackend to be able to save images in JPG format, but its thumbnail is created along with the image, how can I disable thumbnail creation?
Or maybe there is a way when inserting an image from the clipboard into the CKEDITOR editor, you can save the image in JPG format without enabling PillowBackend, so that there is no thumbnail creation?
It seems to have been sorted out, it is necessary in the venv/Lib/site-packages/ckeditor_uploader/backends/pillow_backend.py comment:
# if not animated:
# self.create_thumbnail(file object, saved path)
I don't know how much is correct, but it works.
Related
I am trying to display an image in SDL2 and the only guide I found was a guide about how to display a .bmp image. What I would like to do is displaying an image or setting a temporary image as a background. For example if I press LEFT_KEY the program should proceed to the next image. Any relevant guides or any examples you can share? It is not needed to set the image as a background (stretched), my goal is to display an image and being able to scroll through other images by pressing a key.
Use SDL_Image:
https://www.libsdl.org/projects/SDL_image/
Example:
Loading PNGs with SDL_image
I want to insert pictures in a PowerPoint slide. I've saved bitmap to the disk and called Add_Picture to insert picture, it is working properly.
What I want is without saving bitmap to the disk, add a picture in a PowerPoint slide.
Currently, i'm passing the picture to the clipboard and called the method Paste to do that.
Is there any better alternative solutions?
Did you look at the OLE Automation?
Keep in mind though that this solution will not be portable - Windows only.
I have a small app that renders an image. It's in .ppm format and opens nicely in Mac's Xee image viewer. The image is created in the default project folder.
However, the user doesn't know where the image is after it is rendered and I would like to open it automatically or perhaps offer where to save the image before it is created.
That is the first problem. The second problem is .ppm - it's not opened by default on Windows, you need Irfan Viewer or something alike.
Is there a way to solve both those problems easily in Qt? For instance, the image is created where the user wants and my app displays it in that ppm format without using some other software? And If a user wants to reopen the image, I should probably make it possible, as well.
I am not a Qt, nor a C++ developer so I am struggling a bit with this, but I have to do it.
Thanks in advance for the tips and advices.
If you convert your image to a QImage (if it's not one already), you can specify where and in what format to save it when calling the QImage::save method.
I have added an open graph image to my site but in the news feed it is not scaled correctly. The image is clipped both at the top and at the bottom. The image itself is a png with the size of 1500x1500px.
Looking at my profile page where the image is placed to the left of the text it scales correctly.
I have specified the following meta tags: og:title, og:type, og:image, og:url, and og:description.
I use the ShareThis API for the actual share button (if that can have anything to do with this).
Has anyone had this problem as well?
I am looking for WYSIWYG rich text editor to use with Django. I've looked at a number of different editors (CKEditor, TinyMCE, Aloha, YUI), but I can't seem to find one that has one necessary feature: dynamic image resizing.
What I mean by that is the ability to click a corner of the image in the editor and drag your mouse to resize the image. Content around the image should then adapt to the new image size. As well, the editor needs to have image upload functionality.
Any recommendations?
It's fine if its an editor+plugin combo. Ideally it would also integrate nicely with Django.
Thanks for the help!
Yup. I came to the same conclusion too. django-ckeditor is really easy to use.
Froala and Redactor are perfect for your case. They're paid though.
QuillJS is a free alternative that allows image manipulations by inserting the image directly as a base64 encoded string.