Forums / Install & configuration / GD requiered for upload ?

GD requiered for upload ?

Author Message

Vincent Basset

Wednesday 21 January 2004 6:38:24 am

Hi,

My template doesn't display the images I uploaded (in articles)

The HTML source code which is generated is :

<img src="/ez331" width="" height="" border="0" alt="" title="" />

I have neither GD nor ImageMagik installed, but I thought they were needed to create image with scripts, not to upload or display images ???
Am I wrong ?
Is it the source of my problem ????

++++++++++++

Here is my template for displaying the image of an info page while viewinf its parent directory : (class id 10 is an info page)

{let children_pays=fetch('content', 'list', hash(parent_node_id, $node.node_id, class_filter_type, "include", class_filter_array, array(10)) ) }
{section name=Child loop=$children_pays}
{attribute_view_gui attribute=$Child:item.object.data_map.image}
{/section}
{/let}

THX :)

Marco Zinn

Wednesday 21 January 2004 1:00:34 pm

No, your image is probably uploaded fine.
What happens: the template uses some predefined default size ("small" or so) to display the image, when you use the attribute_view_gui .
This required the image to be scaled and THIS scaling needs some image processing (ImageMagick or GD).
If you don't have any of those two, you can only display the image in "original" size.
You can try
{attribute_view_gui attribute=$Child:item.object.data_map.image size=original}
but I don't know, if this works.

You should have a look at the "embed"-templates, there must be one for images. This is used, when you embed an image(image object) in an XML field.
Or look for the "view attribute" template of the image datatype. Probably somewhere in design/standard/datatypes/view/image or the like.
Hope, that helps.

Marco
http://www.hyperroad-design.com

Vincent Basset

Thursday 22 January 2004 6:33:12 am

Hi Marco,

{attribute_view_gui attribute=$Child:item.object.data_map.image size=original}

=> it doesn't works... :(

Or look for the "view attribute" template of the image datatype. Probably somewhere in design/standard/datatypes/view/image or the like.

=> do you mean design/standard/templates/content/datatype/view/ezimage.tpl ?
If yes, what am I supposed to change here ??? :/

Lazaro Ferreira

Friday 23 January 2004 11:11:18 am

Hi,

I'm not sure but take a look at your Settings in your image.ini or image.ini.append

if you don't have neither ImageMag.. nor Gd installed, probably you will need to change the settings value to match your setup

We have a similar problem, but in our case EZP was trying to use Imagemag.. for conversion, so we have to change the settings to :

[ConverterSettings]
UseConvert=false
UseGD=true

[Rules]
DefaultRule=image/jpeg;gd
Rules[]=image/jpeg;image/jpeg;gd
Rules[]=image/png;image/png;gd
Rules[]=image/gif;image/png;gd
Rules[]=image/xpm;image/png;gd
Rules[]=image/tiff;image/png;gd

-----------------------------------------------
The Rules settings have the mime type of the images accepted by EZP and the conversion method
could be 'convert', or 'gd' (convert for imagemagick)

This is a setup, which do not have Imagemagick instead GD

I think that your setup should be something like this :

[ConverterSettings]
UseConvert=false
UseGD=false

[Rules]
DefaultRule=image/jpeg
Rules[]=image/jpeg;image/jpeg
Rules[]=image/png;image/png
Rules[]=image/gif;image/png
Rules[]=image/xpm;image/png
Rules[]=image/tiff;image/png

-----------------------------------------
The ConverterSettings changes, seems trivial!
The Rules changes, may or may not work, but you could try it

Hope this help
Lazaro

Lazaro
http://www.mzbusiness.com

eZ debug

Timing: Jan 19 2025 01:11:13
Script start
Timing: Jan 19 2025 01:11:13
Module start 'content'
Timing: Jan 19 2025 01:11:14
Module end 'content'
Timing: Jan 19 2025 01:11:15
Script end

Main resources:

Total runtime1.1606 sec
Peak memory usage4,096.0000 KB
Database Queries199

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0083 590.1016180.8359
Module start 'content' 0.00830.9678 770.9375602.9922
Module end 'content' 0.97610.1844 1,373.9297337.3984
Script end 1.1605  1,711.3281 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00460.3969210.0002
Check MTime0.00160.1411210.0001
Mysql Total
Database connection0.00120.104610.0012
Mysqli_queries1.057191.08431990.0053
Looping result0.00290.24811970.0000
Template Total1.128397.220.5642
Template load0.00210.177720.0010
Template processing1.126297.042620.5631
Template load and register function0.00020.019810.0002
states
state_id_array0.00070.059510.0007
state_identifier_array0.00070.062820.0004
Override
Cache load0.00180.1573720.0000
Sytem overhead
Fetch class attribute can translate value0.00150.126740.0004
Fetch class attribute name0.00180.155650.0004
XML
Image XML parsing0.00140.122840.0004
class_abstraction
Instantiating content class attribute0.00000.000950.0000
General
dbfile0.01201.0346270.0004
String conversion0.00000.000630.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
15content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
12content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 34
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs