[Plugin: NextGEN Gallery] Adding Auto-Watermark function
-
Hello,
i installed Nextgen Gallery before some days and is it working wonderfull.
But i miss one important function.After the picture upload the gallery create the database entries and then it check, if the pictures must be resized and after that it create the thumbnails.
You can see this in the functions.php in line 200 – 212 (and line 1000 – 1014)
// add images to database $image_ids = nggAdmin::add_Images($gallery_id, $new_images); //add the preview image if needed nggAdmin::set_gallery_preview ( $gallery_id ); // now create thumbnails nggAdmin::do_ajax_operation( 'create_thumbnail' , $image_ids, __('Create new thumbnails','nggallery') ); //TODO:Message will not shown, because AJAX routine require more time, message should be passed to AJAX nggGallery::show_message( $created_msg . count($image_ids) .__(' picture(s) successfully added','nggallery') ); return;
After adding the follow line
// now create watermark - Added by D. Herberg 14.03.2011 nggAdmin::do_ajax_operation( 'set_watermark' , $image_ids, __('Set watermark','nggallery') );
// add images to database $image_ids = nggAdmin::add_Images($gallery_id, $new_images); //add the preview image if needed nggAdmin::set_gallery_preview ( $gallery_id ); // now create watermark - Added by D. Herberg 14.03.2011 nggAdmin::do_ajax_operation( 'set_watermark' , $image_ids, __('Set watermark','nggallery') ); // now create thumbnails nggAdmin::do_ajax_operation( 'create_thumbnail' , $image_ids, __('Create new thumbnails','nggallery') ); //TODO:Message will not shown, because AJAX routine require more time, message should be passed to AJAX nggGallery::show_message( $created_msg . count($image_ids) .__(' picture(s) successfully added','nggallery') ); return;
i have the problem, that after an upload the system create the thumbnails and say “xxx pictures successfully added […]”
If i change the code to the following:
// add images to database $image_ids = nggAdmin::add_Images($gallery_id, $new_images); //add the preview image if needed nggAdmin::set_gallery_preview ( $gallery_id ); // now create thumbnails nggAdmin::do_ajax_operation( 'create_thumbnail' , $image_ids, __('Create new thumbnails','nggallery') ); // now create watermark - Added by D. Herberg 14.03.2011 nggAdmin::do_ajax_operation( 'set_watermark' , $image_ids, __('Set watermark','nggallery') ); //TODO:Message will not shown, because AJAX routine require more time, message should be passed to AJAX nggGallery::show_message( $created_msg . count($image_ids) .__(' picture(s) successfully added','nggallery') ); return;
I upload some pictures, then nextgen add the pictures to the database, create the watermarking but then it doesn’t create the tumbnails.
I i open the album / gallery I didn’t see the tumbails. I can click on it and the original picture with the watermark is opening.Does anybody know, what I do wrong?
Best Regards,
Daniel
- The topic ‘[Plugin: NextGEN Gallery] Adding Auto-Watermark function’ is closed to new replies.