⚠ In case you've missed it we are migrating to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This forum is read-only and soon will be archived. ⚠


Watermark whith Image Crud and Codeigniter

watermark image crud codeigniter

  • Please log in to reply
3 replies to this topic

#1 Gracekweb

Gracekweb

    Newbie

  • Members
  • Pip
  • 2 posts

Posted 16 May 2015 - 01:27 PM

Hi guys ... I am new to the forum and are a beginner in the development with codeigniter and image crud ... I'm using for the creation of gallery ... but I need to use the watermark in each photo with image crud ... provides this possibility ?

Thanks in advance and congratulations for the forum full of information
 

sorry for my poor english

 

this is my code

 

function photogalleryshow()
	{  
            
            if (!$this->ion_auth->logged_in())
		{
			//redirect them to the login page
			redirect('auth/login', 'refresh');
		}
		elseif (!$this->ion_auth->is_admin()) //remove this elseif if you want to enable this for non-admins
		{
			//redirect them to the home page because they must be an administrator to view this
			return show_error('You must be an administrator to view this page.');
		}
		else
		{
                    
                  $image_crud = new image_CRUD();
	
		$image_crud->set_primary_key_field('id');
		$image_crud->set_url_field('url');
		$image_crud->set_table('photogallery')
		->set_relation_field('category_id')
		->set_ordering_field('priority')
		->set_image_path('images/photogallery');
			
		$output = $image_crud->render();
	
		$this->_photogallery_output($output);
                }
	}


#2 Gracekweb

Gracekweb

    Newbie

  • Members
  • Pip
  • 2 posts

Posted 18 May 2015 - 06:55 PM

any suggestions? or my question is stupid ?

 



#3 Amit Shah

Amit Shah

    grocery CRUD Master

  • Advanced Member
  • PipPipPip
  • 1,192 posts

Posted 22 May 2015 - 02:30 AM

heres the answer to your query...

http://www.grocerycr...ck_after_upload

 

 

the example gives an ability to resize..

what you can do is attach your watermark code to the same.



#4 Amit Shah

Amit Shah

    grocery CRUD Master

  • Advanced Member
  • PipPipPip
  • 1,192 posts

Posted 22 May 2015 - 02:30 AM

heres the answer to your query...

http://www.grocerycr...ck_after_upload

 

 

the example gives an ability to resize..

what you can do is attach your watermark code to the same.







Also tagged with one or more of these keywords: watermark, image crud, codeigniter

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users