Answers for "how to display image in codeigniter"

PHP
0

imagelib thourgh class in codeigniter

$config['image_library'] = 'gd2';
$config['source_image'] = '/path/to/image/mypic.jpg';
$config['create_thumb'] = TRUE;
$config['maintain_ratio'] = TRUE;
$config['width']         = 75;
$config['height']       = 50;

$this->load->library('image_lib', $config);

$this->image_lib->resize();
Posted by: Guest on February-20-2021
-1

jquery view image in codeigniter

<script type="text/javascript">
            $(document).ready(function(){

              $(".tt").click(function(){

                ....
                 $("#kabkota").html($(this).attr("kabkota"));

                 $('#photoss').html('<img src="'+base_url+'upload/screenshoot/'+ss+'" class="img-responsive">'); // show photo
                 });
               });
          </script>
Posted by: Guest on October-27-2020

Code answers related to "how to display image in codeigniter"

Browse Popular Code Answers by Language