Actions
Feature #5333
closedthumbnails
Start date:
01.02.2018
Due date:
% Done:
0%
Estimated time:
Discuss:
Prio Planung:
Description
If a width or height in pixels is supplied, create a thumbnail with imageMagick before sending the image back.
Notation:
..|d|F:pic.png|width:400|...
Create a cache file with a hash of:
filename
modified / created
filesize
width/height
Important: If possible create png thumbnails from SVG files
Files
Related issues
Updated by Benjamin Baer over 5 years ago
Sieht so aus als waere inkscape besser im konvertieren von svg zu png:
https://stackoverflow.com/questions/9853325/how-to-convert-a-svg-to-a-png-with-image-magick
kann man auch gleich mit groesse machen. In der command line versteht sich.
Updated by Carsten Rose over 5 years ago
- Related to Support #4900: Thumbnails: Report & Form - create on the fly added
Updated by Carsten Rose over 5 years ago
- Related to Feature #3332: Uploads: Thumbnails, Details zum hochgeladenen File added
Updated by Carsten Rose over 5 years ago
- Status changed from New to In Progress
- Assignee set to Carsten Rose
Inkscape¶
- Inkscape commandline: https://inkscape.org/sk/doc/inkscape-man.html
- inkscape kann mit --shell gestartet werden - dann ist es evtl. noch schneller. Aktuell hat ein A4 svg skaliert nach 200px 3 Sekunden gebraucht
inkscape %%x -z --export-dpi=500 --export-area-drawing --export-png="%%~nx.png"
Other¶
- IM soll langsam sein (darum in T3 IM 4.2.9) und laut oberen SO Posting Probleme mit SVG haben.
- http://phpthumb.sourceforge.net/ und basiert auf ImageMagick. Besser waere GraphicsMagick.
Specs¶
# PDF: erste Seite $ time inkscape --without-gui -w 300 --export-png nzz.2.inkscape.png ../nzz.2.pdf real 0m0.777s $ time convert -scale 300 ../nzz.2.pdf[0] nzz.2.convert.png real 0m0.384s # SVG $ time inkscape --without-gui -w 300 --export-png tn.300.inkscape.png output-02.svg real 0m1.538s $ time convert -scale 300 output-02.svg[0] tn.300.combine.png real 0m3.345s $ PDF Source Multipage $ time inkscape --without-gui -w 300 --export-png qfq.inkscape.png ../QFQ-Practice-Beginner.pdf real 0m0.435s $ time convert -scale 300 ../QFQ-Practice-Beginner.pdf[0] qfq.convert.png real 0m0.273s
Updated by Carsten Rose over 5 years ago
- Tracker changed from Support to Feature
Updated by Carsten Rose over 5 years ago
- Subject changed from Download API: Create thumbnails on the fly to thumbnails
Updated by Carsten Rose over 5 years ago
- File nzz.2.pdf nzz.2.pdf added
- File nzz.2.convert.png nzz.2.convert.png added
- File nzz.2.inkscape.png nzz.2.inkscape.png added
- File tn.300.combine.png tn.300.combine.png added
- File tn.300.inkscape.png tn.300.inkscape.png added
- File output-02.svg output-02.svg added
Updated by Carsten Rose over 5 years ago
- File qfq.convert.png qfq.convert.png added
- File qfq.inkscape.png qfq.inkscape.png added
- File QFQ-Practice-Beginner.pdf QFQ-Practice-Beginner.pdf added
Updated by Carsten Rose over 5 years ago
- Status changed from In Progress to Closed
- Die Notation ist nun:
T:<pathfilename>|W:200x200|s:1
- Nur der erste Parameter ist mandatory.
Updated by Carsten Rose over 5 years ago
- Target version changed from 55 to 18.4
Actions