Problem getting ImageMagick working and Problem with tag ImageGallery

A place to discuss the testing process in beta cycles or against SVN for the CMS Made Simple CORE package.
Locked
dennis05
Forum Members
Forum Members
Posts: 15
Joined: Tue Oct 24, 2006 4:26 pm

Problem getting ImageMagick working and Problem with tag ImageGallery

Post by dennis05 »

Hi guys,

I don't have GD installed on my webspace and I can't get my provider to do so. I tried to get it working with imagemagick static binaries by setting the path in cmsmadesimple's config.php and the Image Program to IM. Without success.

I figured out that the ImageManager's images.php (which lists the images) checks if imagecreate exists and then generates a thumbnail with it if no thumb is saved. If imagecreate() doesn't exist, it just rescales the original picture in it's html tag. However, it does not try to generate the tumbnail via thumbs.php. I have no idea if the thumbs are generated somewhere else, but this helped me getting IM work with static binaries in the correct path.
(I added the line with the // comment and commented the 2 following lines.

Code: Select all

images.php:
<img src=<?php
        if (function_exists('imagecreate'))
        {
                echo $manager->getThumbnail($file['relative']);
        } else {
                if ($file['image']) {
                        $size_x = $file['image'][0];
                        $size_y = $file['image'][1];
                }
                if (($size_x < 96) && ($size_y < 96))
                {
                }
                elseif ($size_x > $size_y)
                {
                        $size_y = round($size_y / ($size_x / 96));
                        $size_x = 96;
                }
                else
                {
                        $size_x = round($size_x / ($size_y / 96));
                        $size_y = 96;
                }
                echo "/cms/lib/filemanager/ImageManager/thumbs.php?img=".$file['relative'];  // always call thumbs.php
				#echo "{$manager->config['base_url']}{$file['relative']}";
                #echo "\" width=\"$size_x\" height=\"$size_y";
        }
?>...


Another problem with the tag ImageGallery:
Together with $config['internal_pretty_urls'] = true, ImageGallery points it's links to
[page_ID]?page=&img=...
instead of
?page=[page_ID]&img=...

This leads me to a Error 404. All other url-options are default.
Locked

Return to “[locked] Quality Assurance”