CGsmartimage module replacement? Which new module does the image processing job?

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
User avatar
map_1961
Power Poster
Power Poster
Posts: 406
Joined: Fri Apr 20, 2007 7:26 pm
Location: Ruhrstadt

CGsmartimage module replacement? Which new module does the image processing job?

Post by map_1961 »

Hello csmsms.

Which module replaces the CGsmartimage functions in the current cmcms version pls??

Thx.

MAP
User avatar
DIGI3
Dev Team Member
Dev Team Member
Posts: 1786
Joined: Wed Feb 25, 2009 4:25 am
Location: Victoria, BC

Re: CGsmartimage module replacement? Which new module does the image processing job?

Post by DIGI3 »

SmartImage is the maintained fork of CGSmartImage. More information on CG's legacy modules here: https://www.cmsmadesimple.org/module-forking-project
Not getting the answer you need? CMSMS support options
User avatar
map_1961
Power Poster
Power Poster
Posts: 406
Joined: Fri Apr 20, 2007 7:26 pm
Location: Ruhrstadt

Re: CGsmartimage module replacement? Which new module does the image processing job?

Post by map_1961 »

OK - thx. Got it.
Installed CMSMSExt - but missing the watermark and ohter graphicals settings from old CGExtensions module.

CMSMS Extensions has NO settings content - it shows "GENERAL NOTES" only.

What 2 do?

THX

MAP
User avatar
DIGI3
Dev Team Member
Dev Team Member
Posts: 1786
Joined: Wed Feb 25, 2009 4:25 am
Location: Victoria, BC

Re: CGsmartimage module replacement? Which new module does the image processing job?

Post by DIGI3 »

I think those are done via the module's config file now, see the CMSMSExt help, under the "Misc" tab.
Not getting the answer you need? CMSMS support options
User avatar
map_1961
Power Poster
Power Poster
Posts: 406
Joined: Fri Apr 20, 2007 7:26 pm
Location: Ruhrstadt

Re: CGsmartimage module replacement? Which new module does the image processing job?

Post by map_1961 »

Thankx DIGI3.

I tried 2 understand the hints given in the "misc" tab but could not succeed.

Maybe i explain my goal:
1. I like to place a watermark png called "250x114-wmark.png", 250x114 pixels - located in the /uploads/images/ folder in the shon images on the lower right side.
2. The modules/CMSMSExt/data folder did not contain a confic.inc file. So i created one.
3. The content of the confic.inc file is:
$config['xt_imageextensions'] = (png)
$config['xt_watermark_file'] = (uploads/images/250x114-wmark.png)
$config['xt_watermark_alignment'] = (int:8)
---
4. Changed syntax to:
$config['xt_imageextensions'] = 'png';
$config['xt_watermark_file'] = 'uploads/images/250x114-wmark.png';
$config['xt_watermark_alignment'] = 'int:8';


But i see no result using it - event not whan renaminf to cfg.inc.

What is wrong?

THX

MAP
User avatar
PinkElephant
Forum Members
Forum Members
Posts: 173
Joined: Fri Feb 06, 2009 2:08 pm

Re: CGsmartimage module replacement? Which new module does the image processing job?

Post by PinkElephant »

Hi

Last time I looked here I was seeing erratic behaviour but for what it's worth some hit-and-hope ideas...
map_1961 wrote: Tue May 13, 2025 10:37 am $config['xt_watermark_file'] = 'uploads/images/250x114-wmark.png';
Possibly, drop the "uploads/" (in case it's looking for uploads/uploads/)
map_1961 wrote: Tue May 13, 2025 10:37 am $config['xt_watermark_alignment'] = 'int:8';
Raw numeric might be safer...

Code: Select all

$config['xt_watermark_alignment'] = 8;
And ...

Code: Select all

$config['xt_allow_watermarking'] = true;
User avatar
DIGI3
Dev Team Member
Dev Team Member
Posts: 1786
Joined: Wed Feb 25, 2009 4:25 am
Location: Victoria, BC

Re: CGsmartimage module replacement? Which new module does the image processing job?

Post by DIGI3 »

I'm having trouble getting it to work too, it doesn't seem to be reading the settings from the cfg.inc file. I have asked JoMorg to have a look.
Not getting the answer you need? CMSMS support options
User avatar
map_1961
Power Poster
Power Poster
Posts: 406
Joined: Fri Apr 20, 2007 7:26 pm
Location: Ruhrstadt

Re: CGsmartimage module replacement? Which new module does the image processing job?

Post by map_1961 »

I don't get it working:
$config['xt_imageextensions'] = 'png';
$config['xt_watermark_file'] = 'images/250x114-wmark.png';
$config['xt_watermark_alignment'] = 8;
$config['xt_allow_watermarking'] = true;

But as before the site name is shown in the upper left corner:
you can see: nitcha.de

Thx 4 help - MAP
User avatar
PinkElephant
Forum Members
Forum Members
Posts: 173
Joined: Fri Feb 06, 2009 2:08 pm

Re: CGsmartimage module replacement? Which new module does the image processing job?

Post by PinkElephant »

A few notes after another look...

CMSMSExt/data/cfg.inc is being read
calling filter_watermark='text' is never honoured; cfg.inc $config['xt_watermark_text'] always prevails...
when
1) $config['xt_watermark_file'] is set as an empty string
2) xt_watermark_bgcolor is different to xt_watermark_textcolor
I only tested with

Code: Select all

$config['xt_watermark_textcolor'] = '#FFFFFF';
$config['xt_watermark_bgcolor'] = '#000000';
Example call:

Code: Select all

{SmartImage src='uploads/test_watermark.jpg' nobcache=1 filter_croptofit='800,600,c,1' filter_watermark="TESTTESTTEST" noembed=1 force_seo_name=1 force_ext=1}
cfg.inc:

Code: Select all

<?php
$config['xt_prettyhtml'] = FALSE;
$config['xt_minhtml'] =  FALSE;
$config['xtjs_cachelife'] = 24;
$config['xtjs_nocache'] =  TRUE;
$config['xtjs_nominify'] =  TRUE;
$config['xt_relax_sql'] =  FALSE;
$config['xt_ignore_csrf'] =  FALSE;
$config['xt_upload_allowed_filetypes'] = 'jpg,jpeg,png';
$config['xt_imageextensions'] = 'jpg,jpeg,png';
$config['xt_allow_watermarking'] = TRUE;
$config['xt_watermark_text'] = 'TESTing testing 1 2 3';
$config['xt_watermark_textsize'] = 48;
$config['xt_watermark_angle'] = 10;
$config['xt_watermark_font'] = 'ARIAL.TTF';
$config['xt_watermark_textcolor'] = '#FFFFFF';
$config['xt_watermark_bgcolor'] = '#000000';
$config['xt_watermark_transparent'] = TRUE;
// $config['xt_watermark_file'] = 'cow.png';
$config['xt_watermark_file'] = '';
$config['xt_watermark_alignment'] = 4;
$config['xt_watermark_translucency'] = 100;
$config['xt_allow_preview'] = TRUE;
$config['xt_preview_size'] = 100;
$config['xt_delete_orig_image'] = TRUE;
$config['xt_allow_thumbnailing'] = TRUE;
$config['xt_thumbnail_size'] = 75;
$config['xxxxxxxxx_adminsection'] = 'extensions';
?>
...where cow.png lives in /uploads and 'Clear all files' is run after each change (Extensions > CMSMS Smart Image Toolkit > General).

(CMSms and all modules up-to-date today)
User avatar
Jo Morg
Dev Team Member
Dev Team Member
Posts: 1967
Joined: Mon Jan 29, 2007 4:47 pm

Re: CGsmartimage module replacement? Which new module does the image processing job?

Post by Jo Morg »

I'm afraid there are a few bugs on the configuration handling in SI. I'll take a look at it ASAP.
"There are 10 types of people in this world, those who understand binary... and those who don't."
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
Post Reply

Return to “Modules/Add-Ons”