Project

General

Profile

Actions

Feature #5333

closed

thumbnails

Added by Benjamin Baer about 6 years ago. Updated almost 6 years ago.

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

0%

Estimated time:
Discuss:
Prio Planung:
Vote:

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 View nzz.2.pdf 79.2 KB Carsten Rose, 10.02.2018 21:32
nzz.2.inkscape.png View nzz.2.inkscape.png 33.9 KB Carsten Rose, 10.02.2018 21:32
nzz.2.convert.png View nzz.2.convert.png 83.3 KB Carsten Rose, 10.02.2018 21:32
tn.300.inkscape.png View tn.300.inkscape.png 90.1 KB Carsten Rose, 10.02.2018 21:32
tn.300.combine.png View tn.300.combine.png 350 KB Carsten Rose, 10.02.2018 21:32
output-02.svg View output-02.svg 478 KB Carsten Rose, 10.02.2018 21:33
qfq.convert.png View qfq.convert.png 25.2 KB Carsten Rose, 10.02.2018 21:45
qfq.inkscape.png View qfq.inkscape.png 10.4 KB Carsten Rose, 10.02.2018 21:45
QFQ-Practice-Beginner.pdf View QFQ-Practice-Beginner.pdf 80.2 KB 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
Actions #1

Updated by Carsten Rose about 6 years ago

  • Target version set to 55
Actions #2

Updated by Benjamin Baer about 6 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.

Actions #3

Updated by Carsten Rose about 6 years ago

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

Updated by Carsten Rose about 6 years ago

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

Updated by Carsten Rose about 6 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
Actions #6

Updated by Carsten Rose about 6 years ago

  • Tracker changed from Support to Feature
Actions #7

Updated by Carsten Rose about 6 years ago

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

Updated by Carsten Rose about 6 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.
Actions #11

Updated by Carsten Rose almost 6 years ago

  • Target version changed from 55 to 18.4
Actions

Also available in: Atom PDF