Yes, I understand.
Quote from: esche at Sep 19, 2010, 09:16 AMYou have to have the PHP Multibyte String enabled on your php.ini settings.
Fatal error: Call to undefined function mb_get_info() in ...\assets\modules\easy2\install\index.php on line 527Может стоит добавить корректную обработку:
if (function_exists(..) && mb_get_info()... )
UPD version: e2g-1.4.0-rc1-r268.zip
wikibooks(ru) Ditto(en) | Wayfinder e-book | Заметки и о MODxhm...
Yes, I understand.
But to except Fatal Error i think it’s better to check function existing.
Thank for your module and support.
@modx_user,
Ignore the "457 Невозможно выставить права доступа".
Replace the assets\modules\easy2\includes\classes\e2g.module.class.php with this.

apparently you have to hard-coded it by yourself.
Друзья, подскажите где задать размер и цвет текстового водяного знака?
<?php // only for highlighting
$text_color = imagecolorallocate($im, 0, 0, 0);
imagestring($im, 2, $x - 1, $y, $e2g['wmt'], $text_color);
imagestring($im, 2, $x + 1, $y, $e2g['wmt'], $text_color);
imagestring($im, 2, $x, $y - 1, $e2g['wmt'], $text_color);
imagestring($im, 2, $x, $y + 1, $e2g['wmt'], $text_color);
imagestring($im, 2, $x + 1, $y + 1, $e2g['wmt'], $text_color);
imagestring($im, 2, $x - 1, $y - 1, $e2g['wmt'], $text_color);
$text_color = imagecolorallocate($im, 255, 255, 255);
imagestring($im, 2, $x, $y, $e2g['wmt'], $text_color);
<?php // only for highlighting
private function _resize_img ($f, $inf, $w, $h, $thq) {
// ... more code here
// RESIZE
if ($inf[0] > $inf[1]) $h = round($inf[1] * $w / $inf[0]);
else $w = round($inf[0] * $h / $inf[1]);
// ... more code here
}
img-width > img-height is a landscape orientation picture.
If : (img-width > img-height), the height-setting = round (img-height) * width-setting / img-width)
else: width-setting = round(img-width * height-setting / img-height)