CodeIgniter Forums
how to display original image from the folder for the post view page - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24)
+--- Thread: how to display original image from the folder for the post view page (/showthread.php?tid=62823)



how to display original image from the folder for the post view page - deva - 08-30-2015

i want to display the Original image instead of displaying cropped image..

<div class="white_box">
<div class="box-body">
<span class="hide WallHashID"><?php echo $wallpaper->wallpaper_hash; ?></span>
<?php $width = 620;
$height = 347; ?>

<div class="col-sm-12">
   <div class="wallpaper_image">
       <img class="thumbnail img-responsive"
            style="width:100%; height:auto; display:block; max-width:<?php echo $width; ?>px;max-height: <?php echo $height; ?>px;"
             src="<?php echo $this->image_workshop->crop_image(ORIGINALS_FOLDER_WF . '/' . $wallpaper->wallpaper_image_path, $width, $height, $wallpaper->wallpaper_crop_position, 'thumbnail'); ?>"
            alt="<?php echo $wallpaper->wallpaper_name; ?>">

</div>