Could you check your GD library version from PHP info and maybe put it visible somewhere for me to look at. You can find php info at the modx manager by looking to Administration -> View system info -> View link at phpinfo().
Please check http://www.multiverso.com/phpinfo, you can see the the phpinfo there.
function createthumb($filename,$filetype,$path_to_gal,$prefix="",$mgconfig,$resize=true) {function createthumb($filename,$filetype,$path_to_gal,$prefix="",$mgconfig,$resize=true) {
global $modx;Ah.. peeked at the code and I think I know what’s going on.. open the functions.php file for editing and search this:
function createthumb($filename,$filetype,$path_to_gal,$prefix="",$mgconfig,$resize=true) {
after that line, add global $modx; so it becomes:
function createthumb($filename,$filetype,$path_to_gal,$prefix="",$mgconfig,$resize=true) { global $modx;
Please report back with results..
This is because you have php safe mode restrictions on the server (for openbase dir, i guess). There isn’t really a fix for this, but you can get around it. Look for instructions here.
Yes, this is the way the snippet is currently designed to work. Sorry. I have allready planned to start using phpThumb with MaxiGallery which handles all the image altering and saves it pictures to a cache. The original picture stays intact with no altering done. You could then use the same "base" image in multiple galleries with different sizes/filtering and change the size/watermarks/shadows at anytime for any picture/gallery. But no work is done for this yet.. There will be a new release very soon what has bugfixes and some cool new features like templating. After this, I (or Marc, if he’s up to it) start to work with the phpThumb.
Ok, thanks to hexagon I found what’s happening: the settings like dropshadow, imagemask and watermarking are only applied to the images AT THE MOMENT that you upload them, not AFTER you have uploaded them.
...
Is this the way the snippet was designed, or it is a malfuncion on my server/webiste? It would be a little annyoing that after uploading 100 photos I could to change the watermark for example and be forced to reupload everything...
This discussion is closed to further replies. Keep calm and carry on.