Forums / Install & configuration / ezimagemanager with GD handling

ezimagemanager with GD handling

Author Message

Sander Homs

Monday 31 March 2003 12:32:17 pm

In kernel/common/image.php,
there is something wrong with this:

$img->registerType( 'gd', new eZImageGD( EZ_IMAGE_KEEP_SUFFIX,
EZ_IMAGE_PREPEND_SUFFIX_TAG ) );

I changed the suffix parameter to EZ_IMAGE_KEEP_SUFFIX.

Big mistake in ezimagegd.php:

00196 function scale( &$from, &$to, &$to_file, &$filters, $scale )
00197 {
00198 $this->convert( $from, $to, $to_file, $filters, $scale );
00199 }

I changed it to (WTH is your problem with php?):

function scale( &$from, &$to, &$to_dir, &$to_file, &$filters, $scale )
{
$this->convert( $from, $to, $to_dir, $to_file, $filters, $scale );
}

Couse the function must be used like this:

/*!
Converts the image and scales it if needed.
Returns true if the image could be converted.
*/
function convert( &$from, &$to, &$to_dir, &$to_file, &$filter_array, $scale = false )
.......

And for scaling stuff is passed like this from ezimagemanager.php:

$str = $type_obj->scale( $from_array, $to_array, $to_dir, $to_file,
$filter_array, $scale_rule );

Not every image is created. I think it creates only one image. On the demo gallery site it doesnt create any of the images exept the textimage. How can i fix this? Something with this image function is wrong please help as fast as possible.
Template processing takes a very long time: 45.0026 sec
I hope i supplied enough information. More info can be found at this topic:
http://developer.ez.no/developer/ez_publish_3/forum/install_configuration/still_problems_with_images
Some changes fixed alot and i hope this will be helpfull

I am looking forward for an answer,

Sander Homs

Sander Homs

Monday 31 March 2003 1:14:16 pm

Well i found all the errors and fixed the shit :)
It is working now. I only had to delete the cache and variations dir and i cleaned up my database 'ezimagevariation' database table.

Lets hear what the developers have to say about this?! :)

Greats,
Sander

Jean Fitz

Tuesday 01 April 2003 11:55:03 am

I did exactly the same thing as you and the images are FINALLY there.
Thanks Sander for saving me so much agony and searching for solutions (but I'm a coward and only 'moved' the variations and cache dirs). Once I deleted the files from the ezimagevariation table, PRESTO.
Thanks again

Valentin Svelland

Monday 07 April 2003 12:53:33 pm

Unfortunately I'm experiencing the same frustrating problem, no images. I tried out your solution, but being somewhat a newbie - or at least not a good programmer, I'm not quite there yet. Have you seen this solution laid out in a simpler step by step way? I really wanna beat this thing.. :)

http://www.bredbandavisen.no/ezpublish-3.0-1/index.php/demo/content/view/thumbnail/18

------------------------
I made eZ run on www.eigersund.kommune.no, bjerkreim.kommune.no, lund.kommune.no and sokndal.kommune.no. Municipalities should use open source!

eZ debug

Timing: Jan 18 2025 11:29:16
Script start
Timing: Jan 18 2025 11:29:16
Module start 'content'
Timing: Jan 18 2025 11:29:18
Module end 'content'
Timing: Jan 18 2025 11:29:18
Script end

Main resources:

Total runtime1.5706 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.0064 587.8281180.8281
Module start 'content' 0.00641.3761 768.6563594.9453
Module end 'content' 1.38250.1880 1,363.6016337.3828
Script end 1.5705  1,700.9844 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00410.2593210.0002
Check MTime0.00160.1008210.0001
Mysql Total
Database connection0.00070.045210.0007
Mysqli_queries1.488894.78811990.0075
Looping result0.00230.14561970.0000
Template Total1.538097.920.7690
Template load0.00180.112220.0009
Template processing1.536297.806020.7681
Template load and register function0.00030.017310.0003
states
state_id_array0.00160.099310.0016
state_identifier_array0.00250.162020.0013
Override
Cache load0.00150.0967490.0000
Sytem overhead
Fetch class attribute can translate value0.00240.152840.0006
Fetch class attribute name0.00170.111250.0003
XML
Image XML parsing0.00280.179640.0007
class_abstraction
Instantiating content class attribute0.00000.000850.0000
General
dbfile0.00400.2528270.0001
String conversion0.00000.000430.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
10content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
11content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.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: 28
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs