Lines Matching refs:sourceFilename
227 public $sourceFilename = null; variable in phpthumb
330 public function setSourceFilename($sourceFilename) { argument
333 $this->sourceFilename = $sourceFilename;
334 $this->src = $sourceFilename;
336 $sourceFileExtension = strtolower(substr(strrchr($sourceFilename, '.'), 1));
339 …$this->DebugMessage('setSourceFilename('.$sourceFilename.') set $this->config_output_format to "'.…
341 …$this->DebugMessage('setSourceFilename('.$sourceFilename.') did NOT set $this->config_output_forma…
344 …this->DebugMessage('setSourceFilename('.$sourceFilename.') set $this->sourceFilename to "'.$this->…
349 public function setSourceData($rawImageData, $sourceFilename='') { argument
355 $sourceFilename = ($sourceFilename ? $sourceFilename : md5($rawImageData));
361 ….$this->config_cache_source_directory.DIRECTORY_SEPARATOR.urlencode($sourceFilename).'"', __FILE__…
362 …fopen($this->config_cache_source_directory.DIRECTORY_SEPARATOR.urlencode($sourceFilename), 'wb')) {
366 … cache ('.$this->config_cache_source_directory.DIRECTORY_SEPARATOR.urlencode($sourceFilename).')');
979 $this->sourceFilename = null;
983 if ($this->sourceFilename) {
984 $this->sourceFilename = $this->ResolveFilenameToAbsolute($this->sourceFilename);
985 …$this->DebugMessage('$this->sourceFilename set to "'.$this->sourceFilename.'"', __FILE__, __LINE__…
987 $this->sourceFilename = $this->ResolveFilenameToAbsolute($this->src);
988 …$this->DebugMessage('$this->sourceFilename set to "'.$this->sourceFilename.'" from $this->src ('.$…
992 …if ($this->iswindows && ((substr($this->sourceFilename, 0, 2) == '//') || (substr($this->sourceFil…
994 } elseif (preg_match('#^[a-z0-9]+://#i', $this->sourceFilename, $protocol_matches)) {
995 if (preg_match('#^(f|ht)tps?\://#i', $this->sourceFilename)) {
1003 } elseif (!@file_exists($this->sourceFilename)) {
1004 return $this->ErrorImage('"'.$this->sourceFilename.'" does not exist');
1005 } elseif (!@is_file($this->sourceFilename)) {
1006 return $this->ErrorImage('"'.$this->sourceFilename.'" is not a file');
1677 $this->sourceFilename = $IMtempSourceFilename;
1768 if (!$this->sourceFilename && $this->rawImageData) {
1771 if (!$this->sourceFilename) {
1790 …rg_replacement(preg_replace('#[/\\\\]#', DIRECTORY_SEPARATOR, $this->sourceFilename).(($outputForm…
1814 $getimagesize = getimagesize($this->sourceFilename);
1818 …$this->DebugMessage('getimagesize('.$this->sourceFilename.') SUCCEEDED: '.print_r($getimagesize, t…
1820 …$this->DebugMessage('getimagesize('.$this->sourceFilename.') FAILED with error "'.$GetImageSizeErr…
1833 …$this->DebugMessage('getimagesize('.$this->sourceFilename.') returned [w='.$getimagesize[0].';h='.…
2000 $this->DebugMessage('getimagesize('.$this->sourceFilename.') failed', __FILE__, __LINE__);
2486 if ($this->sourceFilename) {
2488 if ($exif_data = @exif_read_data($this->sourceFilename, 'IFD0')) {
2511 … $this->DebugMessage('failed: exif_read_data('.$this->sourceFilename.')', __FILE__, __LINE__);
3480 if (preg_match('#^http:#i', $this->src) && !$this->sourceFilename && $this->rawImageData) {
3484 if ($this->sourceFilename) {
3485 if ($this->getimagesizeinfo = @getimagesize($this->sourceFilename)) {
3488 …$this->DebugMessage('getimagesize('.$this->sourceFilename.') says image is '.$this->source_width.'…
3490 $this->DebugMessage('getimagesize('.$this->sourceFilename.') failed', __FILE__, __LINE__);
3506 } elseif ($this->rawImageData && !$this->sourceFilename) {
3518 $this->getimagesizeinfo['filesize'] = @filesize($this->sourceFilename);
3520 $this->DebugMessage('getimagesize("'.$this->sourceFilename.'") failed', __FILE__, __LINE__);
3542 $this->exif_raw_data = @exif_read_data($this->sourceFilename, 0, true);
3556 …$this->exif_thumbnail_data = @exif_thumbnail($this->sourceFilename, $this->exif_thumbnail_width, $…
3562 $this->exif_thumbnail_data = exif_thumbnail($this->sourceFilename);
3653 if (!$this->sourceFilename && !$this->rawImageData && $this->src) {
3654 $this->sourceFilename = $this->ResolveFilenameToAbsolute($this->src);
3657 if ($this->config_cache_default_only_suffix && $this->sourceFilename) {
3665 preg_match('#(.+)(\\.[a-z0-9]+)?$#i', basename($this->sourceFilename), $matches);
3685 … _src set from md5($this->sourceFilename) "'.$this->sourceFilename.'" = "'.md5($this->sourceFilena…
3686 $broad_directory_name = strtolower(md5($this->sourceFilename));
3734 $this->cache_filename .= '_dat'. (int) (@filemtime($this->sourceFilename));
3858 if (empty($this->sourceFilename) && !empty($this->rawImageData)) {
3862 $this->sourceFilename = $tempnam;
3903 } elseif (!$this->gdimg_source && $this->sourceFilename) {
3905 if ($this->md5s && ($this->md5s != phpthumb_functions::md5_file_safe($this->sourceFilename))) {
3906 …\n".'"'.$this->md5s.'" != '."\n".'"'.phpthumb_functions::md5_file_safe($this->sourceFilename).'"');
3916 $this->gdimg_source = $this->ImageCreateFromFilename($this->sourceFilename);
4046 if ($fp = @fopen($this->sourceFilename, 'rb')) {
4079 } elseif ($this->sourceFilename) {
4080 if ($fp = @fopen($this->sourceFilename, 'rb')) {
4084 …return $this->ErrorImage('failed to open "'.$this->sourceFilename.'" SourceImageToGD() ['.__LINE__…