Categories: None [Edit]

csv_preview

https://rubygems.org/gems/csv_preview
https://github.com/garyhtou/csv_preview
csv_preview is a Ruby gem that renders CSV and TSV files as preview images (PNG, JPEG or WebP) and adds an Active Storage previewer to Rails. It turns the first rows of a file into a clean, readable table image: a thumbnail for a file list or a larger preview for a detail page. In Rails, CsvPreview::ActiveStoragePreviewer (an ActiveStorage::Previewer) makes CSV attachments work with blob.preview, blob.representation and previewable? the same way PDFs and videos do. It draws text with libvips (vips) and Pango, needs no LibreOffice, headless browser or ImageMagick, never starts another process or opens a network connection, and treats every file as untrusted input with bounded reads, memory and time.

Total

Ranking: 198,570 of 198,817
Downloads: 206

Daily

Ranking: 45,481 of 198,797
Downloads: 6

Depended by

RankDownloadsName

Depends on

RankDownloadsName
246229,447,781csv
381143,943,188ruby-vips

Owners

#GravatarHandle
1icongaryhtou