Commit graph

16 commits

Author SHA1 Message Date
Rasmus Alexander Christiansen
7590247fb4 Limit concurrency to 1 when image naming enabled 2026-04-06 20:53:39 +02:00
Rasmus Alexander Christiansen
5c34a6367a Generate image dataURL only when needed 2026-04-06 20:50:57 +02:00
Rasmus Alexander Christiansen
93c598f49f Add image naming modal and save named images 2026-04-06 18:57:03 +02:00
Rasmus Alexander Christiansen
ca32de316b Sanitize image folder names and rename setting 2026-03-31 22:05:27 +02:00
Rasmus Alexander Christiansen
4e685fe383 Add custom image folder name option logic 2026-03-31 21:12:09 +02:00
Rasmus Alexander Christiansen
446cad4c75 Cache base path and error on missing dest 2026-03-31 19:12:26 +02:00
Rasmus Alexander Christiansen
6e639378d0 Do nothing if custom destination folder is not set 2026-03-30 18:42:04 +02:00
Rasmus Alexander Christiansen
a24638d29d Minor fixes and documentation 2025-11-30 20:46:06 +01:00
Rasmus Alexander Christiansen
cc4f205765 Comprehensive documentation 2025-11-30 15:57:27 +01:00
Rasmus Alexander Christiansen
b04c1949ad Add display width to image link for low quality exports
When exporting images at a quality less than 1.0, the image link now includes the display width in the markdown syntax.
This will show the original dimensions for display purposes.
The PdfProcessor now calculates and passes the display width and quality to the image link builder.
2025-11-30 14:20:39 +01:00
Rasmus Alexander Christiansen
1bb9bd3b08 Pass imageQuality parameter to PDF processing
Use the image quality parameter from the modal
2025-11-30 13:53:49 +01:00
Rasmus Alexander Christiansen
8f7e8b5318 Add configurable image type
Adds an 'imageType' setting which allows users to select the output format (webp, jpeg, png) for generated images.
Updates PdfProcessor to use the selected image type for file naming and encoding.
2025-11-29 11:07:56 +01:00
Rasmus Alexander Christiansen
6ee64762ce Add configurable max concurrent pages setting
Adds a 'maxConcurrentPages' option to settings.
Allows users to control the number of pages processed concurrently in PdfProcessor.
The concurrency limit adapts based on this setting and the total number of pages.
2025-11-29 00:30:38 +01:00
Rasmus Alexander Christiansen
9ad082ed0a Switched from png WebP format
Changed image export from PNG to WebP with quality 0.9 for better compression and performance
2025-11-28 23:48:09 +01:00
Rasmus Alexander Christiansen
b6b11fb666 Optimize PDF processing with concurrency and memory cleanup
Refactored the PDF processing logic to process pages in concurrent batches, improving performance for large PDFs. Added explicit memory cleanup for PDF.js resources and canvas bitmaps to reduce browser memory usage. Header extraction and duplicate filtering are now handled sequentially after batch processing. Error handling and progress updates have been improved.
2025-11-28 22:36:03 +01:00
Rasmus Alexander Christiansen
e3c7913aaa Refactor PDF processing into PdfProcessor class
Moved PDF-to-image conversion logic from main.ts to PdfProcessor.ts class for better separation of concerns.
Updated main.ts to use PdfProcessor for handling PDF files.
2025-11-28 19:28:37 +01:00