PNG  IHDR* pHYs+ IDATx]n#; cdLb Ǚ[at¤_:uP}>!Usă cag޿ ֵNu`ݼTâabO7uL&y^wFٝA"l[|ŲHLN밪4*sG3|Dv}?+y߉{OuOAt4Jj.u]Gz*҉sP'VQKbA1u\`& Af;HWj hsO;ogTu uj7S3/QzUr&wS`M$X_L7r2;aE+ώ%vikDA:dR+%KzƉo>eOth$z%: :{WwaQ:wz%4foɹE[9<]#ERINƻv溂E%P1i01 |Jvҗ&{b?9g=^wζXn/lK::90KwrюO\!ջ3uzuGv^;騢wq<Iatv09:tt~hEG`v;3@MNZD.1]L:{ծI3`L(÷ba")Y.iljCɄae#I"1 `3*Bdz>j<fU40⨬%O$3cGt]j%Fߠ_twJ;ABU8vP3uEԑwQ V:h%))LfraqX-ۿX]v-\9I gl8tzX ]ecm)-cgʒ#Uw=Wlێn(0hPP/ӨtQ“&J35 $=]r1{tLuǮ*i0_;NƝ8;-vݏr8+U-kruȕYr0RnC]*ެ(M:]gE;{]tg(#ZJ9y>utRDRMdr9㪩̞zֹb<ģ&wzJM"iI( .ꮅX)Qw:9,i좜\Ԛi7&N0:asϓc];=ΗOӣ APqz93 y $)A*kVHZwBƺnWNaby>XMN*45~ղM6Nvm;A=jֲ.~1}(9`KJ/V F9[=`~[;sRuk]rєT!)iQO)Y$V ی ۤmzWz5IM Zb )ˆC`6 rRa}qNmUfDsWuˤV{ Pݝ'=Kֳbg,UҘVz2ﴻnjNgBb{? ߮tcsͻQuxVCIY۠:(V뺕 ٥2;t`@Fo{Z9`;]wMzU~%UA蛚dI vGq\r82iu +St`cR.6U/M9IENDB` REDROOM
PHP 5.6.40
Preview: simpleimage.php Size: 3.71 KB
/home/ankaservis/servis.ankaservis.com/muhasebe/sistem/simpleimage.php

<?php
 ini_set('memory_limit', '-1');
/*
* File: SimpleImage.php
* Author: Simon Jarvis
* Copyright: 2006 Simon Jarvis
* Date: 08/11/06
* Link: http://www.white-hat-web-design.co.uk/articles/php-image-resizing.php
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details:
* http://www.gnu.org/licenses/gpl.html
*
*/
 
class SimpleImage {
 
   var $image;
   var $image_type;
 
   function load($filename) {
 
      $image_info = getimagesize($filename);
      $this->image_type = $image_info[2];
      if( $this->image_type == IMAGETYPE_JPEG ) {
 
         $this->image = imagecreatefromjpeg($filename);
      } elseif( $this->image_type == IMAGETYPE_GIF ) {
 
         $this->image = imagecreatefromgif($filename);
      } elseif( $this->image_type == IMAGETYPE_PNG ) {
 
         $this->image = imagecreatefrompng($filename);
      }
   }
   function save($filename, $image_type=IMAGETYPE_JPEG, $compression=75, $permissions=null) {

   // do this or they'll all go to jpeg
   $image_type=$this->image_type;

  if( $image_type == IMAGETYPE_JPEG ) {
     imagejpeg($this->image,$filename,$compression);
  } elseif( $image_type == IMAGETYPE_GIF ) {
     imagegif($this->image,$filename);  
  } elseif( $image_type == IMAGETYPE_PNG ) {
    // need this for transparent png to work          
    imagealphablending($this->image, false);
    imagesavealpha($this->image,true);
    imagepng($this->image,$filename);
  }   
  if( $permissions != null) {
     chmod($filename,$permissions);
  }
  }
   function output($image_type=IMAGETYPE_JPEG) {
 
      if( $image_type == IMAGETYPE_JPEG ) {
         imagejpeg($this->image);
      } elseif( $image_type == IMAGETYPE_GIF ) {
 
         imagegif($this->image);
      } elseif( $image_type == IMAGETYPE_PNG ) {
 
         imagepng($this->image);
      }
   }
   function getWidth() {
 
      return imagesx($this->image);
   }
   function getHeight() {
 
      return imagesy($this->image);
   }
   function resizeToHeight($height) {
        $ratio = $height / $this->getHeight();
        $width = $this->getWidth() * $ratio;
        $this->resize($width,$height);
    }
    function resizeToWidth($width) {
        $ratio = $width / $this->getWidth();
        $height = $this->getheight() * $ratio;
        $this->resize($width,$height);
    }
    function scale($scale) {
        $width = $this->getWidth() * $scale/100;
        $height = $this->getheight() * $scale/100;
        $this->resize($width,$height);
    }
   function resize($width,$height,$forcesize='n') {

  /* optional. if file is smaller, do not resize. */
  if ($forcesize == 'n') {
      if ($width > $this->getWidth() && $height > $this->getHeight()){
          $width = $this->getWidth();
          $height = $this->getHeight();
      }
  }

  $new_image = imagecreatetruecolor($width, $height);
  /* Check if this image is PNG or GIF, then set if Transparent*/  
  if(($this->image_type == IMAGETYPE_GIF) || ($this->image_type==IMAGETYPE_PNG)){
      imagealphablending($new_image, false);
      imagesavealpha($new_image,true);
      $transparent = imagecolorallocatealpha($new_image, 255, 255, 255, 127);
      imagefilledrectangle($new_image, 0, 0, $width, $height, $transparent);
  }
  imagecopyresampled($new_image, $this->image, 0, 0, 0, 0, $width, $height, $this->getWidth(), $this->getHeight());

  $this->image = $new_image;   
  }
 
}
?>

Directory Contents

Dirs: 4 × Files: 37

Name Size Perms Modified Actions
kimlik DIR
- drwxr-xr-x 2022-08-10 21:02:56
Edit Download
logo DIR
- drwxr-xr-x 2022-08-10 21:02:56
Edit Download
profil DIR
- drwxr-xr-x 2022-08-10 21:02:56
Edit Download
scopbin DIR
- drwxr-xr-x 2022-08-10 21:02:56
Edit Download
7.18 KB lrw-r--r-- 2025-11-13 11:09:06
Edit Download
7.45 KB lrw-r--r-- 2025-11-14 06:36:36
Edit Download
2.62 KB lrw-r--r-- 2025-11-14 06:45:44
Edit Download
7.46 KB lrw-r--r-- 2025-11-13 13:10:30
Edit Download
7.81 KB lrw-r--r-- 2025-11-13 14:24:40
Edit Download
7.56 KB lrw-r--r-- 2025-11-13 14:41:24
Edit Download
9.51 KB lrw-r--r-- 2025-11-13 14:41:24
Edit Download
7.33 KB lrw-r--r-- 2025-11-13 13:10:30
Edit Download
6.76 KB lrw-r--r-- 2025-11-13 06:52:38
Edit Download
1.23 KB lrw-r--r-- 2025-11-13 06:52:38
Edit Download
11.55 KB lrw-r--r-- 2025-11-13 13:19:20
Edit Download
14.60 KB lrw-r--r-- 2025-11-14 08:05:30
Edit Download
7.67 KB lrw-r--r-- 2025-08-29 14:25:54
Edit Download
3.34 KB lrw-r--r-- 2025-08-29 14:25:54
Edit Download
12.90 KB lrw-r--r-- 2025-11-13 13:23:40
Edit Download
2.40 KB lrw-r--r-- 2025-08-29 14:25:54
Edit Download
7.59 KB lrw-r--r-- 2025-11-13 13:10:30
Edit Download
7.53 KB lrw-r--r-- 2025-11-13 13:05:12
Edit Download
8.18 KB lrw-r--r-- 2025-08-29 14:25:54
Edit Download
2.52 KB lrw-r--r-- 2025-08-29 14:25:54
Edit Download
2.51 KB lrw-r--r-- 2025-08-29 14:25:54
Edit Download
7.37 KB lrw-r--r-- 2025-11-13 14:52:58
Edit Download
8.34 KB lrw-r--r-- 2025-11-13 14:52:04
Edit Download
11.39 KB lrw-r--r-- 2025-11-14 07:11:36
Edit Download
72.47 KB lrw-r--r-- 2025-11-14 06:45:44
Edit Download
58.57 KB lrw-r--r-- 2025-11-14 08:00:22
Edit Download
23.42 KB lrw-r--r-- 2025-11-14 06:45:44
Edit Download
6.82 KB lrw-r--r-- 2025-11-14 07:11:36
Edit Download
10.14 KB lrw-r--r-- 2025-11-14 08:02:42
Edit Download
3.12 KB lrw-r--r-- 2025-11-14 05:43:34
Edit Download
3.71 KB lrw-r--r-- 2025-08-29 14:25:54
Edit Download
504 B lrw-r--r-- 2025-08-29 14:25:54
Edit Download
8.98 KB lrw-r--r-- 2025-11-13 06:52:38
Edit Download
1.17 KB lrw-r--r-- 2025-11-14 06:45:44
Edit Download
7.83 KB lrw-r--r-- 2025-11-13 14:52:04
Edit Download
23.08 KB lrw-r--r-- 2025-11-14 05:00:16
Edit Download
29.01 KB lrw-r--r-- 2025-11-14 05:07:12
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).
© 2026 REDROOM — Secure File Manager. All rights reserved. Built with ❤️ & Red Dark UI