CGsmartimage module replacement? Which new module does the image processing job?
CGsmartimage module replacement? Which new module does the image processing job?
Hello csmsms.
Which module replaces the CGsmartimage functions in the current cmcms version pls??
Thx.
MAP
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?
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
Re: CGsmartimage module replacement? Which new module does the image processing job?
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
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?
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
Re: CGsmartimage module replacement? Which new module does the image processing job?
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
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
- PinkElephant
- Forum Members
- Posts: 173
- Joined: Fri Feb 06, 2009 2:08 pm
Re: CGsmartimage module replacement? Which new module does the image processing job?
Hi
Last time I looked here I was seeing erratic behaviour but for what it's worth some hit-and-hope ideas...
And ...
Last time I looked here I was seeing erratic behaviour but for what it's worth some hit-and-hope ideas...
Possibly, drop the "uploads/" (in case it's looking for uploads/uploads/)
Raw numeric might be safer...
Code: Select all
$config['xt_watermark_alignment'] = 8;
Code: Select all
$config['xt_allow_watermarking'] = true;
Re: CGsmartimage module replacement? Which new module does the image processing job?
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
Re: CGsmartimage module replacement? Which new module does the image processing job?
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
$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
- PinkElephant
- Forum Members
- Posts: 173
- Joined: Fri Feb 06, 2009 2:08 pm
Re: CGsmartimage module replacement? Which new module does the image processing job?
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
Example call:
cfg.inc:
...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)
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';
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}
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';
?>
(CMSms and all modules up-to-date today)
Re: CGsmartimage module replacement? Which new module does the image processing job?
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!
* 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!