New Imagesystem: Question about geometry/scalepercent

Author Message

Marco Zinn

Tuesday 23 December 2003 8:34:38 am

The new imagesystem has a filter called geometry/scalepercent.
From the release docu:
"geometry/scalepercent=widthpercent,heightpercent - Scale image to a percentage of what it was using widthpercent and heightpercent, the aspect ratio is maintained"
My Question: If it will maintain the aspect ratio, why can I provide two paramters (widthpercent,heightpercent) and which is actually used?
Will this scale up AND down? Does a paramter of "100" mean "100%" or should we use "1" or "1.00"?

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

Jan Borsodi

Friday 09 January 2004 6:22:40 am

You're right the text is wrong, scaling in percent DOES NOT keep aspect ratio. Also a value of 100 means 100%.

I've updated the page with this information.

--
Amos

Documentation: http://ez.no/ez_publish/documentation
FAQ: http://ez.no/ez_publish/documentation/faq

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 06:16:46
Script start
Timing: Jan 31 2025 06:16:46
Module start 'layout'
Timing: Jan 31 2025 06:16:46
Module start 'content'
Timing: Jan 31 2025 06:16:46
Module end 'content'
Timing: Jan 31 2025 06:16:46
Script end

Main resources:

Total runtime0.0151 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.0045 588.3750151.2422
Module start 'layout' 0.00450.0024 739.617236.7109
Module start 'content' 0.00700.0065 776.328190.1875
Module end 'content' 0.01350.0016 866.515629.9922
Script end 0.0151  896.5078 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002315.1779140.0002
Check MTime0.00106.6180140.0001
Mysql Total
Database connection0.00064.092110.0006
Mysqli_queries0.001912.569930.0006
Looping result0.00000.072610.0000
Template Total0.00127.810.0012
Template load0.00095.966010.0009
Template processing0.00031.807610.0003
Override
Cache load0.00064.158410.0006
General
dbfile0.00159.713980.0002
String conversion0.00000.060040.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