Project

General

Profile

Feature #5333

thumbnails

Added by Benjamin Baer over 3 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Start date:
01.02.2018
Due date:
% Done:

0%

Estimated time:
Discuss:

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

nzz.2.pdf (79.2 KB) nzz.2.pdf Carsten Rose, 10.02.2018 21:32
nzz.2.inkscape.png (33.9 KB) nzz.2.inkscape.png Carsten Rose, 10.02.2018 21:32
nzz.2.convert.png (83.3 KB) nzz.2.convert.png Carsten Rose, 10.02.2018 21:32
tn.300.inkscape.png (90.1 KB) tn.300.inkscape.png Carsten Rose, 10.02.2018 21:32
tn.300.combine.png (350 KB) tn.300.combine.png Carsten Rose, 10.02.2018 21:32
output-02.svg (478 KB) output-02.svg Carsten Rose, 10.02.2018 21:33
qfq.convert.png (25.2 KB) qfq.convert.png Carsten Rose, 10.02.2018 21:45
qfq.inkscape.png (10.4 KB) qfq.inkscape.png Carsten Rose, 10.02.2018 21:45
QFQ-Practice-Beginner.pdf (80.2 KB) QFQ-Practice-Beginner.pdf Carsten Rose, 10.02.2018 21:45

Related issues

Related to QFQ - Support #4900: Thumbnails: Report & Form - create on the flyClosedCarsten Rose08.11.2017

Actions
Related to QFQ - Feature #3332: Uploads: Thumbnails, Details zum hochgeladenen FileSome day maybeCarsten Rose10.03.2017

Actions
#1

Updated by Carsten Rose over 3 years ago

  • Target version set to next
#2

Updated by Benjamin Baer over 3 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.

#3

Updated by Carsten Rose over 3 years ago

  • Related to Support #4900: Thumbnails: Report & Form - create on the fly added
#4

Updated by Carsten Rose over 3 years ago

  • Related to Feature #3332: Uploads: Thumbnails, Details zum hochgeladenen File added
#5

Updated by Carsten Rose over 3 years ago

  • Status changed from New to In Progress
  • Assignee set to Carsten Rose

Inkscape

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
#6

Updated by Carsten Rose over 3 years ago

  • Tracker changed from Support to Feature
#7

Updated by Carsten Rose over 3 years ago

  • Subject changed from Download API: Create thumbnails on the fly to thumbnails
#10

Updated by Carsten Rose over 3 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.
#11

Updated by Carsten Rose over 3 years ago

  • Target version changed from next to 18.4

Also available in: Atom PDF