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: | Scottrudy |
---|---|
Location: | Fremont, CA |
Users: | 2 |
Nodes: | 10 (0 / 10) |
Uptime: | 42:03:08 |
Calls: | 42 |
Messages: | 23,040 |