Questions tagged [insert-image]

34 questions
24
votes
3 answers

insert image into text buffer

If I place (insert-image (create-image "/tmp/test.png")) in a buffer, place the cursor after the last parenthesis and evaluate it with C-x C-e, then the image /tmp/test.png is displayed in the buffer: Pretty neat. But, I had to put the final…
unutbu
  • 842,883
  • 184
  • 1,785
  • 1,677
21
votes
8 answers

Why Images.Media.insertImage return null

I have some code where I run the method MediaStore.Images.Media.insertImage (inserting it from a source not a file name), This code saves the image to the MediaStore and returns the uri of the image. I know that when it fails for any reason it will…
dj.lnxss
  • 289
  • 1
  • 4
  • 15
9
votes
3 answers

How to get the image element after insert using execCommand?

Is there any way to get the image element after we insert the image using execCommand? for example e.execCommand('insertimage',0,'ronaldo.png')
5
votes
1 answer

Insert an image into Excel with openpyxl

My PC crashed and so I had to reinstall all of my libraries; after finishing the install, I realized that some libraries updated to a new version and my code no longer works (due to a new version of openpyxl). I am trying to insert an image into an…
kjsfld
  • 141
  • 1
  • 2
  • 9
2
votes
1 answer

How do I insert an image path quickly in markdown using sublime text

I am writing some markdown file which will show some images in another directory. The directory structure is like the following: D:\NUTSHARE\PERSONAL_NOTE ├─daily_note ├─images ├─misc ├─resources └─tech_note I write markdown file in one of the…
jdhao
  • 24,001
  • 18
  • 134
  • 273
1
vote
4 answers

How to display an image as result of true in a function

So I'm playing around with some code and I'm trying to design a program that displays an image if a true statement results from the input. An example would be as follows: name = input('name: ') if name == 'Sammi': # Here is where I would put the…
1
vote
1 answer

How can I manually insert a .png or .jpeg file into bytea column in PostgreSQL?

I'm currently using PostgreSQL 4.38 on Windows 10, I'm trying to insert an image (.png file) manually into bytea column in PostgreSQL, but upon executing the data, it says that invalid input syntax for type bytea. What should be the right procedure…
1
vote
1 answer

XLSXWRITER insert_image not working with BytesIO

When written directly to xlsx file, insert_image works as intended. But it doesn't work when written to BytesIO object, the image simply doesn't appear.
thethakuri
  • 509
  • 5
  • 16
1
vote
0 answers

execCommand 'insertimage' is not working for local files in IE 11 on some computers

I'm trying to insert image from local folder using execCommand in IE11: JS: document.execCommand('insertImage', false, "C://issue.jpg"); It is working on one computer, but it is not working on other computer. For non working case I get the…
1
vote
2 answers

Error in inserting the image to Mysql

Im using C# to insert an image to Mysql database. The length of byte array is 51115. However, When I checked in database, the length of the field IMage (Long Blob) is only 13 bytes. What wrong is it? Please help me! private void saveBtn_Click(object…
Huu Tin
  • 57
  • 1
  • 1
  • 8
1
vote
1 answer

xlsxwriter insert_image .insert_image

I want to insert an image to Excel document, and I try to use xlsxwriter insert_image, but it said unknown.insert_image. from win32com import client xlApp = client.Dispatch("Excel.Application") workbook =…
1
vote
1 answer

Image is not shown from mongodb in ejs template

I am trying to insert an image in mongodb, then I want to fetch and show the image in ejs template. My code: index.js var uploadDir=__dirname+'/uploads'; var images=Date.now()+'.jpg'; var storage=multer.diskStorage({ …
Saurabh Sharma
  • 804
  • 6
  • 16
  • 42
1
vote
1 answer

Qt - QTextCursor insertImage low resolution when printing on pdf

I have a QImage and a QPainter that paints on this image. After painting I tried to insert this QImage to QTextDocument with QTextCursor's insertImage method : QImage image(width ,height,QImage::Format_RGB32); QPainter…
Akın Yılmaz
  • 300
  • 5
  • 18
1
vote
1 answer

Is it possible to open CKEditor Insert-Image Component programmatically?

For example, if I have a ready instance of CKEDITOR, and on that same page I have a list of pictures, with this markup:
user1386320
0
votes
0 answers

Bar chart in ggplot2 adding logos with ggtextures gets axes mixed up when printed with agg_png

I print the plot with agg_png my prefered function, I have used it previously and works, but with the current chart do not work. When printing the chart it places the axis y where the x axis should be I want the bar chart with the coordinates…
1
2 3