I have extracted a PDF attachment from email and i have the content of PDF file like : Buffer ff 34 54 ,I want to convert this buffer to jpg image buffer. So that i can convert the the PDF to jpg image. Is there a way to convert the buffer directly?
I have saved the pdf file then using some third party module, I have converted that to jpg. But for that I have to write and read files many times.
Maybe this could help. Just googled pdf to image and got this.
npm install pdf-image
var PDFImage = require("pdf-image").PDFImage;
var pdfImage = new PDFImage("/tmp/slide.pdf");
pdfImage.convertFile().then(function (imagePaths) {
// [ /tmp/slide-0.png, /tmp/slide-1.png ]
});
Related
I have an old database that has images in it that I want to extract. The images are in a column labelled jpg and have format :
ffd8ffe0 00104a46 49460001 01000001 00010000 fffe002e 496e7465 6c285229 204a5045 47204c69 62726172 792c2076 65727369 6f6e205b 312e3531 2e31332e 34355d00 ffdb0043 00080606 07060508 ...
I believe this is JPEG encoding. How do I turn this into a regular image? I tried copy pasting it into a text editor and naming the file image.jpg, but it won't open. Not sure what I'm missing. Is there a solution in python?
I have an api in which I generate an XLSX file with some data, and then transform it to base64 and return it to the client.
I'm having trouble transforming the XLSX to Base64, the function returns the string in base64, but when I check it with tools like base64guru or similar, it is converted to a zip file and the XLSX is completely lost.
I'm using the typical method to convert to base64, I don't have anything strange, it just transforms it into a zip and I don't know why.
Here is the parser code:
const path = `./some_path/${randomName}.xlsx`;
XLSX.writeFile(workbook, path); //<<-- the file is generated and i can open it with excel and works
fine.
const base64String = fs.readFileSync(path).toString('base64'); //this return the base64 zip file :S
Does anyone know why this happens and how can I solve it?
Here i put a base64 generated string:
UEsDBAoAAAAAAPOGalHWknwRWgEAAFoBAAARAAAAZG9jUHJvcHMvY29yZS54bWw8P3htbCB2ZXJzaW9uPSIxLjAiIGVuY29kaW5nPSJVVEYtOCIgc3RhbmRhbG9uZT0ieWVzIj8+DQo8Y3A6Y29yZVByb3BlcnRpZXMgeG1sbnM6Y3A9Imh0dHA6Ly9zY2hlbWFzLm9wZW54bWxmb3JtYXRzLm9yZy9wYWNrYWdlLzIwMDYvbWV0YWRhdGEvY29yZS1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CAAAtAgAAGgAAAAAAAAAAAAAAAAAjNwAAeGwvX3JlbHMvd29ya2Jvb2sueG1sLnJlbHNQSwUGAAAAAAkACQA+AgAAiDkAAAAA
There is nothing wrong here. You can rename the decoded Base64 file to .xlsx and open it with Excel.
XLSX is in fact a zip-file with a certain structure inside.
Office Open XML (also informally known as OOXML or Microsoft Open XML (MOX))[3] is a zipped, XML-based file format developed by Microsoft for representing spreadsheets, charts, presentations and word processing documents
(Source: https://en.wikipedia.org/wiki/Office_Open_XML)
The base64 website did it's best to identify the file format and found the first 4 bytes
50 4b 03 04 ("PK��")
which identifies it as a ZIP file.(originally PKZIP, starting with the initials of the creator)
If you keep the .zip extension, you can open it with any unzip tool or directly in the Windows Explorer to see the internal structure of it.
With a few lines JavaScript you can identify the OpenXML content type of the OpenXML/ZIP file:
var base64input = 'UEsDBAoAAAAAAPOGalHWknwRWgEAAFoBAAARAAAAZG9jUHJvcHMvY29yZS54bWw8P3htbCB2ZXJzaW9uPSIxLjAiIGVuY29kaW5nPSJVVEYtOCIgc3RhbmRhbG9uZT0ieWVzIj8+DQo8Y3A6Y29yZVByb3BlcnRpZXMgeG1sbnM6Y3A9Imh0dHA6Ly9zY2hlbWFzLm9wZW54bWxmb3JtYXRzLm9yZy9wYWNrYWdlLzIwMDYvbWV0YWRhdGEvY29yZS1wcm9wZXJ0aWVzIiB4bWxuczpkYz0iaHR0cDovL3B1cmwub3JnL2RjL2VsZW1lbnRzLzEuMS8iIHhtbG5zOmRjdGVybXM9Imh0dHA6Ly9wdXJsLm9yZy9kYy90ZXJtcy8iIHhtbG5zOmRjbWl0eXBlPSJodHRwOi8vcHVybC5vcmcvZGMvZGNtaXR5cGUvIiB4bWxuczp4c2k9Imh0dHA6Ly93d3cudzMub3JnLzIwMDEvWE1MU2NoZW1hLWluc3RhbmNlIi8+UEsDBAoAAAAAAPOGalGxLi/VMwIAADMCAAAQAAAAZG9jUHJvcHMvYXBwLnhtbDw/eG1sIHZlcnNpb249IjEuMCIgZ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SZWxhdGlvbnNoaXBzPlBLAQIUAAoAAAAAAPOGalHWknwRWgEAAFoBAAARAAAAAAAAAAAAAAAAAAAAAABkb2NQcm9wcy9jb3JlLnhtbFBLAQIUAAoAAAAAAPOGalGxLi/VMwIAADMCAAAQAAAAAAAAAAAAAAAAAIkBAABkb2NQcm9wcy9hcHAueG1sUEsBAhQACgAAAAAA84ZqUfwR/M3HBAAAxwQAABgAAAAAAAAAAAAAAAAA6gMAAHhsL3dvcmtzaGVldHMvc2hlZXQxLnhtbFBLAQIUAAoAAAAAAPOGalFHFBtxQwEAAEMBAAAPAAAAAAAAAAAAAAAAAOcIAAB4bC93b3JrYm9vay54bWxQSwECFAAKAAAAAADzhmpRMA+Ia94dAADeHQAAEwAAAAAAAAAAAAAAAABXCgAAeGwvdGhlbWUvdGhlbWUxLnhtbFBLAQIUAAoAAAAAAPOGalFV9ASUWgQAAFoEAAANAAAAAAAAAAAAAAAAAGYoAAB4bC9zdHlsZXMueG1sUEsBAhQACgAAAAAA84ZqUTbrlv2SBwAAkgcAABMAAAAAAAAAAAAAAAAA6ywAAFtDb250ZW50X1R5cGVzXS54bWxQSwECFAAKAAAAAADzhmpRSmoR+UwCAABMAgAACwAAAAAAAAAAAAAAAACuNAAAX3JlbHMvLnJlbHNQSwECFAAKAAAAAADzhmpR0D9k3S0CAAAtAgAAGgAAAAAAAAAAAAAAAAAjNwAAeGwvX3JlbHMvd29ya2Jvb2sueG1sLnJlbHNQSwUGAAAAAAkACQA+AgAAiDkAAAAA'
var buf = Buffer.from(base64input, 'base64');
console.log(buf)
const header = buf.toString()
if (header.indexOf(" ContentType=\"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml\"") > 0)
console.log("Excel XSLX")
else if (header.indexOf(" ContentType=\"application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml\"") > 0)
console.log("Word DOCX")
else if (header.indexOf("ContentType=\"application/vnd.openxmlformats-officedocument.presentationml.presentation.main+xml\"") > 0)
console.log("PowerPoint PPTX")
I can't guarantee that it will allways work. With the example from the question it works, but with a DOCX file on my PC it didn't. I'll update this answer as soon as I know more.
When I upload a photo it converts to base64 and then when I send to mongodb using Mongoose it saves as Binary. But when I call the same picture back from the database it returns as Buffer array. After converting to base64 it returns as a base64 string but completely different from the original base64. The new base64 is unable to be rendered in browser because it has been corrupted.
Below are pictures of the different strings
This is the initial base64
This is the Buffer array
This is the corrupted base64 after converting from the buffer array using Buffer.from(avatar).toString('base64').
Please note that I appended to it "data:image/png;base64," before rendering in the browser and it still did not render.
Please can someone tell me what I am doing wrong?
the best solution is convert to png or jpg file and upload only path and save image to folder.
Here is how I solved it.
I converted from binary to utf8 instead of to base64.
There is a huge difference bewteen
Buffer.from(binary_data, 'binary').toString('utf8')
and
Buffer.from(binary_data, 'binary').toString('base64')
I know there are answers regarding this question, but hear me out.
I am currently trying to make PDF out of .jpg files using img2pdf in python, but instead of appending the files to PDF it overwrites the already existing pages from the PDF.
Here's the code
import os,img2pdf
os.chdir("/home/aditya/Desktop")#images are inside desktop
root, dir, files = list(os.walk(os.getcwd()))[0]#files contains the
list of all names of all .jpg file
which I want to convert into PDF
with open("pdf_file.pdf","ab") as f:#PDF file is set to append
for img_file in files:
with open(img_file,"rb") as im_file:#read bytes from the image files
f.write(img2pdf.convert(im_file))#this line overwrites the exisiting
pages in the pdf despite the fact that
I have set it to #append
Any reason for this? Is there special attribute I need to pass?
Any help is appreciated. Thanks
img2pdf.convert does not convert image by image. It either does a single image or all at once
img2pdf.convert(list of images )
with open("pdf_file.pdf","ab") as f: #Open a pdf
f.write(img2pdf.convert(files)) #convert all the images and write bytes
I have a set of .dat files. They are images of characters from the UNIPEN character database. I want to convert them into .jpg images for further processing. I use the following simple code for that, but it gives an error message saying that .dat extention is invalid. Can someone suggest a method for that?
Bitmap ^myImage = gcnew Bitmap("D:\\charimage\\a.dat");
myImage->Save("D:\\test.jpg");