uploading pictures - how to resize?

Author Message

Manu Gupta

Thursday 01 April 2004 12:53:29 am

hi, our team wants people to upload picture, but is facing an issue when people upload disproportionate size pictures. person 1 may have a really wide pic, person 2 has really tall pic. but to make page look uniform, how to resize?

options?
(1) use the style sheet to resize the image, regardless of original size. disadvantages: can distort images, doesn't allow for differently shaped images, and if the image is very large, users still have to download a large file.

(2) have EZ reject all graphic files over a certain number of bytes, assuming that large graphics are large file sizes. disadvantages: probably unreliable in terms of filtering. advantages: very easy to impliment. but this still doesnt solve the ratio issue.

(3) have EZ somehow determine the dimensions of an incoming graphic file, and if it's over certain dimensions, reject it. advantages: this would put the onus on the person uploading.

(4) have EZ or some other software automatically crop/resize images as they come in. advantages: this would insure proper file-size and graphic size.

any ideas from EZ community?

thanks
manu

Tore Skobba

Thursday 01 April 2004 3:14:44 am

Hi

This is easy and efficient with EZ, read this link:
http://www.ez.no/ez_publish/download/changelogs/ez_publish_3_3/new_image_system

Cheers
Tore

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 05:59:29
Script start
Timing: Jan 31 2025 05:59:29
Module start 'layout'
Timing: Jan 31 2025 05:59:29
Module start 'content'
Timing: Jan 31 2025 05:59:29
Module end 'content'
Timing: Jan 31 2025 05:59:29
Script end

Main resources:

Total runtime0.0175 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.0063 588.1563151.2109
Module start 'layout' 0.00630.0027 739.367236.6484
Module start 'content' 0.00900.0073 776.015690.0469
Module end 'content' 0.01630.0012 866.062529.9922
Script end 0.0175  896.0547 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002413.8131140.0002
Check MTime0.00116.0421140.0001
Mysql Total
Database connection0.00105.733410.0010
Mysqli_queries0.002715.465830.0009
Looping result0.00000.073510.0000
Template Total0.00084.710.0008
Template load0.00073.793710.0007
Template processing0.00020.907310.0002
Override
Cache load0.00052.681010.0005
General
dbfile0.003218.069380.0004
String conversion0.00000.061240.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