I tweaked my Sixel Gallery script a bit, adding an optional image path argument. If used, simply displays the specified image converted to
sixel and ends. Using this small mod, I set up GIF, JPG, PNG, and BMP as Viewable File Types in SCFG. So now whenever someone browses directories containing images (e.g.: GIFs Galore CD-ROM), if they go into Extended Info for any image file and hit V to view it, they are shown a sixel preview of the image.
VERY nice, Code - I also had this 'idea' for .PDFs... one could quickly use a sixel converter to turn a PDF into a .six and display to the user.
The other consideration is text quality/legibility. By converting PDF
text to an image, the text won't look as sharp. By further converting it to sixel, it could look worse, especially if ImageMagick is scaling down the sixel for viewing in a typical 80x24 SyncTERM window. Maybe this
isn't an issue if your source PDF is primarily image-based. But if it's text-based (but not a scanned image of text), you might consider using a tool like Poppler's pdftotext to extract the text from the PDF and
display that as an alternative.
Sysop: | digital man |
---|---|
Location: | Riverside County, California |
Users: | 1,063 |
Nodes: | 17 (0 / 17) |
Uptime: | 35:07:50 |
Calls: | 501,357 |
Calls today: | 2 |
Files: | 109,427 |
D/L today: |
2,606 files (283M bytes) |
Messages: | 302,469 |