Page 1 of 1
CGsmartimage module replacement? Which new module does the image processing job?
Posted: Fri May 02, 2025 4:47 pm
by map_1961
Hello csmsms.
Which module replaces the CGsmartimage functions in the current cmcms version pls??
Thx.
MAP
Re: CGsmartimage module replacement? Which new module does the image processing job?
Posted: Fri May 02, 2025 6:29 pm
by DIGI3
SmartImage is the maintained fork of CGSmartImage. More information on CG's legacy modules here:
https://www.cmsmadesimple.org/module-forking-project
Re: CGsmartimage module replacement? Which new module does the image processing job?
Posted: Sat May 03, 2025 11:17 am
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
Re: CGsmartimage module replacement? Which new module does the image processing job?
Posted: Sat May 03, 2025 1:49 pm
by DIGI3
I think those are done via the module's config file now, see the CMSMSExt help, under the "Misc" tab.
Re: CGsmartimage module replacement? Which new module does the image processing job?
Posted: Tue May 13, 2025 10:37 am
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
Re: CGsmartimage module replacement? Which new module does the image processing job?
Posted: Tue May 13, 2025 3:48 pm
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;
Re: CGsmartimage module replacement? Which new module does the image processing job?
Posted: Tue May 13, 2025 4:02 pm
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.
Re: CGsmartimage module replacement? Which new module does the image processing job?
Posted: Tue May 13, 2025 4:04 pm
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
Re: CGsmartimage module replacement? Which new module does the image processing job?
Posted: Wed May 14, 2025 1:31 pm
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)
Re: CGsmartimage module replacement? Which new module does the image processing job?
Posted: Wed May 14, 2025 1:44 pm
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.