SVG best pratices

Author Message

Salvatore Guarino

Tuesday 21 October 2008 4:33:48 am

I would like to publish tables in SVG format in an eZpublish site. I cannot use the default image class because it doesn't accept svg format (when I try to upload appears an error message indicating that the image is invalid). Maybe a good idea is to create a new class like the file class with a template that embed the svg code in the page, but I'm not sure that this is the best way to manage svg files in ezpublish....any idea?

Thx,
Salvatore

Björn Dieding@xrow.de

Tuesday 21 October 2008 5:08:08 am

That looks like the fast solution.

Else you could also just inout the SVG XML in a textarea.

Looking for a new job? http://www.xrow.com/xrow-GmbH/Jobs
Looking for hosting? http://hostingezpublish.com
-----------------------------------------------------------------------------
GMT +01:00 Hannover, Germany
Web: http://www.xrow.com/

Salvatore Guarino

Tuesday 21 October 2008 5:58:34 am

Thank you very much.
Bye, Salvatore

Salvatore Guarino

Tuesday 21 October 2008 11:57:58 pm

But there isn't a way to parse svg files using imagemagick and convert these in png or other raster formats? (gif, jpeg etc)

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 31 2025 00:25:23
Script start
Timing: Jan 31 2025 00:25:23
Module start 'layout'
Timing: Jan 31 2025 00:25:23
Module start 'content'
Timing: Jan 31 2025 00:25:23
Module end 'content'
Timing: Jan 31 2025 00:25:23
Script end

Main resources:

Total runtime0.0213 sec
Peak memory usage4,096.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0043 588.0156151.1953
Module start 'layout' 0.00430.0045 739.2109220.6719
Module start 'content' 0.00880.0113 959.88281,001.7734
Module end 'content' 0.02010.0012 1,961.656333.9922
Script end 0.0213  1,995.6484 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002411.3300140.0002
Check MTime0.00094.4503140.0001
Mysql Total
Database connection0.00063.040610.0006
Mysqli_queries0.002411.464130.0008
Looping result0.00000.112810.0000
Template Total0.00094.310.0009
Template load0.00073.199210.0007
Template processing0.00021.040010.0002
Override
Cache load0.00041.981610.0004
General
dbfile0.00073.410380.0001
String conversion0.00000.046940.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs