Subversion Repositories eFlore/Applications.cel

Rev

Rev 3787 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3787 Rev 3911
Line 129... Line 129...
129
				}
129
				}
130
				$verrou = flock($fp, LOCK_UN);
130
				$verrou = flock($fp, LOCK_UN);
131
				fclose($fp);
131
				fclose($fp);
132
				$image = file_get_contents($chemin_image);
132
				$image = file_get_contents($chemin_image);
133
			}
133
			}
-
 
134
		 elseif ('O' === $format) {
-
 
135
			$image = new Imagick($chemin_image);
-
 
136
			$profiles = $image->getImageProfiles('icc', true);
-
 
137
			$image->stripImage();
-
 
138
			if (!empty($profile)) {
-
 
139
				$image->profileImage('icc', $profiles['icc']);
-
 
140
			}
-
 
141
			$image = $image->getImageBlob();
134
		} else {
142
		} else {
135
			$image = file_get_contents($chemin_image);
143
			$image = file_get_contents($chemin_image);
136
		}
144
		}
137
		return $image;
145
		return $image;
138
	}
146
	}