Resizing image object

Author Message

Sander van den Akker

Friday 24 February 2006 5:44:57 am

I created a watermarked image using a combination of the image, imagefile and texttoimage opererators. The quality of the output PNG is great, but the filesize is too big.
Is there any way to convert the image object to another format (i.e to JPG using the $image.imagepath value?)

eZ Publish certified developer
http://auth.ez.no/certification/verify/392313

Stéphane Bullier

Wednesday 01 March 2006 7:48:10 am

Hello,

What do you use of "Image conversion system" ? ImageMagic or GD ?

Stéphane

Halvor M

Wednesday 01 March 2006 11:29:26 pm

Perhaps you could also share the code you used for watermarking - sounds like a good idea :-)

Łukasz Serwatka

Wednesday 01 March 2006 11:38:42 pm

@Halvor

Here you can find example ;)
http://ez.no/community/forum/setup_design/watermark_images/re_watermark_images

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

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 01:25:35
Script start
Timing: Jan 31 2025 01:25:36
Module start 'layout'
Timing: Jan 31 2025 01:25:36
Module start 'content'
Timing: Jan 31 2025 01:25:36
Module end 'content'
Timing: Jan 31 2025 01:25:36
Script end

Main resources:

Total runtime0.0265 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.0070 588.1250151.2109
Module start 'layout' 0.00700.0043 739.3359220.6875
Module start 'content' 0.01130.0140 960.0234997.7734
Module end 'content' 0.02530.0012 1,957.796933.9922
Script end 0.0265  1,991.7891 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00259.5109140.0002
Check MTime0.00103.8782140.0001
Mysql Total
Database connection0.00072.503110.0007
Mysqli_queries0.005319.964630.0018
Looping result0.00000.041310.0000
Template Total0.00093.310.0009
Template load0.00072.702610.0007
Template processing0.00020.618410.0002
Override
Cache load0.00041.681610.0004
General
dbfile0.00124.554180.0002
String conversion0.00000.023440.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