Prevent image resize when uploading

Author Message

Edward Eliot

Tuesday 28 September 2004 3:15:08 am

How do I prevent eZpublish from resizing an image I upload through the image attribute in my "page" class?

Mark Marsiglio

Tuesday 28 September 2004 6:43:09 am

It should not resize it by default, the resizing only occurs when the image is used in a template. By default the image is resized to the size specified as "medium" in the image.ini and image.ini.append files. You can make it appear as you uploaded by specifying the template use the "original" size.

I think this is the right syntax, but I am not sure.


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

http://www.thinkcreative.com
Turning Ideas Into Strategic Solutions

Edward Eliot

Tuesday 28 September 2004 7:07:58 am

Works fine, thanks.

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 18 2025 22:11:28
Script start
Timing: Jan 18 2025 22:11:28
Module start 'layout'
Timing: Jan 18 2025 22:11:28
Module start 'content'
Timing: Jan 18 2025 22:11:28
Module end 'content'
Timing: Jan 18 2025 22:11:28
Script end

Main resources:

Total runtime0.0195 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0077 589.0469152.6250
Module start 'layout' 0.00770.0035 741.671939.4609
Module start 'content' 0.01120.0059 781.132889.3359
Module end 'content' 0.01710.0024 870.468830.3047
Script end 0.0195  900.7734 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.003015.2346140.0002
Check MTime0.00126.1946140.0001
Mysql Total
Database connection0.00126.231210.0012
Mysqli_queries0.003216.246930.0011
Looping result0.00000.122010.0000
Template Total0.00199.510.0019
Template load0.00094.839610.0009
Template processing0.00094.628610.0009
Override
Cache load0.00063.283310.0006
General
dbfile0.00031.463680.0000
String conversion0.00000.052440.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