Skip to content

Commit a2441ac

Browse files
committed
fix
1 parent a5ac855 commit a2441ac

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ ipcMain.handle("pdf-cover", async (event, files: string[]) => {
226226
const savePath = path.join(dir, saveFilename)
227227
if (!fs.existsSync(savePath)) fs.mkdirSync(savePath)
228228
const pdfimages = popplerPath ? popplerPath : "pdfimages"
229-
exec(`cd "${savePath}" && "${pdfimages}" -j -q "${PDFs[i]}" "${saveFilename}"`)
229+
exec(`cd "${savePath}" && "${pdfimages}" -png -j -q "${PDFs[i]}" "${saveFilename}"`)
230230
.then(async () => {
231231
fs.unlinkSync(PDFs[i])
232232
let images = fs.readdirSync(savePath).map((i) => path.join(savePath, i))

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "image-compressor",
3-
"version": "0.1.6",
3+
"version": "0.1.7",
44
"description": "Compresses, resizes, and renames images.",
55
"main": "dist/main.js",
66
"scripts": {

0 commit comments

Comments
 (0)