Namespaces

  • Nette
    • Application
      • Diagnostics
      • Responses
      • Routers
      • UI
    • Caching
      • Storages
    • ComponentModel
    • Config
      • Adapters
      • Extensions
    • Database
      • Diagnostics
      • Drivers
      • Reflection
      • Table
    • DI
      • Diagnostics
    • Diagnostics
    • Forms
      • Controls
      • Rendering
    • Http
    • Iterators
    • Latte
      • Macros
    • Loaders
    • Localization
    • Mail
    • Reflection
    • Security
      • Diagnostics
    • Templating
    • Utils
      • PhpGenerator
  • NetteModule
  • None
  • PHP

Classes

  • ArrayHash
  • ArrayList
  • Callback
  • DateTime
  • Environment
  • Framework
  • FreezableObject
  • Image
  • Object
  • ObjectMixin

Interfaces

  • IFreezable

Exceptions

  • ArgumentOutOfRangeException
  • DeprecatedException
  • DirectoryNotFoundException
  • FatalErrorException
  • FileNotFoundException
  • InvalidArgumentException
  • InvalidStateException
  • IOException
  • MemberAccessException
  • NotImplementedException
  • NotSupportedException
  • OutOfRangeException
  • StaticClassException
  • UnexpectedValueException
  • UnknownImageFileException
  • Overview
  • Namespace
  • Class
  • Tree
  • Deprecated
  1: <?php
  2: 
  3: /**
  4:  * This file is part of the Nette Framework (http://nette.org)
  5:  *
  6:  * Copyright (c) 2004 David Grudl (http://davidgrudl.com)
  7:  *
  8:  * For the full copyright and license information, please view
  9:  * the file license.txt that was distributed with this source code.
 10:  */
 11: 
 12: namespace Nette;
 13: 
 14: use Nette;
 15: 
 16: 
 17: /**
 18:  * Basic manipulation with images.
 19:  *
 20:  * <code>
 21:  * $image = Image::fromFile('nette.jpg');
 22:  * $image->resize(150, 100);
 23:  * $image->sharpen();
 24:  * $image->send();
 25:  * </code>
 26:  *
 27:  * @author     David Grudl
 28:  *
 29:  * @method void alphaBlending(bool $on)
 30:  * @method void antialias(bool $on)
 31:  * @method void arc($x, $y, $w, $h, $s, $e, $color)
 32:  * @method void char($font, $x, $y, $char, $color)
 33:  * @method void charUp($font, $x, $y, $char, $color)
 34:  * @method int colorAllocate($red, $green, $blue)
 35:  * @method int colorAllocateAlpha($red, $green, $blue, $alpha)
 36:  * @method int colorAt($x, $y)
 37:  * @method int colorClosest($red, $green, $blue)
 38:  * @method int colorClosestAlpha($red, $green, $blue, $alpha)
 39:  * @method int colorClosestHWB($red, $green, $blue)
 40:  * @method void colorDeallocate($color)
 41:  * @method int colorExact($red, $green, $blue)
 42:  * @method int colorExactAlpha($red, $green, $blue, $alpha)
 43:  * @method void colorMatch(Image $image2)
 44:  * @method int colorResolve($red, $green, $blue)
 45:  * @method int colorResolveAlpha($red, $green, $blue, $alpha)
 46:  * @method void colorSet($index, $red, $green, $blue)
 47:  * @method array colorsForIndex($index)
 48:  * @method int colorsTotal()
 49:  * @method int colorTransparent([$color])
 50:  * @method void convolution(array $matrix, float $div, float $offset)
 51:  * @method void copy(Image $src, $dstX, $dstY, $srcX, $srcY, $srcW, $srcH)
 52:  * @method void copyMerge(Image $src, $dstX, $dstY, $srcX, $srcY, $srcW, $srcH, $opacity)
 53:  * @method void copyMergeGray(Image $src, $dstX, $dstY, $srcX, $srcY, $srcW, $srcH, $opacity)
 54:  * @method void copyResampled(Image $src, $dstX, $dstY, $srcX, $srcY, $dstW, $dstH, $srcW, $srcH)
 55:  * @method void copyResized(Image $src, $dstX, $dstY, $srcX, $srcY, $dstW, $dstH, $srcW, $srcH)
 56:  * @method void dashedLine($x1, $y1, $x2, $y2, $color)
 57:  * @method void ellipse($cx, $cy, $w, $h, $color)
 58:  * @method void fill($x, $y, $color)
 59:  * @method void filledArc($cx, $cy, $w, $h, $s, $e, $color, $style)
 60:  * @method void filledEllipse($cx, $cy, $w, $h, $color)
 61:  * @method void filledPolygon(array $points, $numPoints, $color)
 62:  * @method void filledRectangle($x1, $y1, $x2, $y2, $color)
 63:  * @method void fillToBorder($x, $y, $border, $color)
 64:  * @method void filter($filtertype [, ...])
 65:  * @method int fontHeight($font)
 66:  * @method int fontWidth($font)
 67:  * @method array ftBBox($size, $angle, string $fontFile, string $text [, array $extrainfo])
 68:  * @method array ftText($size, $angle, $x, $y, $col, string $fontFile, string $text [, array $extrainfo])
 69:  * @method void gammaCorrect(float $inputgamma, float $outputgamma)
 70:  * @method int interlace([$interlace])
 71:  * @method bool isTrueColor()
 72:  * @method void layerEffect($effect)
 73:  * @method void line($x1, $y1, $x2, $y2, $color)
 74:  * @method int loadFont(string $file)
 75:  * @method void paletteCopy(Image $source)
 76:  * @method void polygon(array $points, $numPoints, $color)
 77:  * @method array psBBox(string $text, $font, $size [, $space] [, $tightness] [, float $angle])
 78:  * @method void psEncodeFont($fontIndex, string $encodingfile)
 79:  * @method void psExtendFont($fontIndex, float $extend)
 80:  * @method void psFreeFont($fontindex)
 81:  * @method resource psLoadFont(string $filename)
 82:  * @method void psSlantFont($fontIndex, float $slant)
 83:  * @method array psText(string $text, $font, $size, $color, $backgroundColor, $x, $y [, $space] [, $tightness] [, float $angle] [, $antialiasSteps])
 84:  * @method void rectangle($x1, $y1, $x2, $y2, $col)
 85:  * @method Image rotate(float $angle, $backgroundColor)
 86:  * @method void saveAlpha(bool $saveflag)
 87:  * @method void setBrush(Image $brush)
 88:  * @method void setPixel($x, $y, $color)
 89:  * @method void setStyle(array $style)
 90:  * @method void setThickness($thickness)
 91:  * @method void setTile(Image $tile)
 92:  * @method void string($font, $x, $y, string $s, $col)
 93:  * @method void stringUp($font, $x, $y, string $s, $col)
 94:  * @method void trueColorToPalette(bool $dither, $ncolors)
 95:  * @method array ttfBBox($size, $angle, string $fontfile, string $text)
 96:  * @method array ttfText($size, $angle, $x, $y, $color, string $fontfile, string $text)
 97:  * @method int types()
 98:  * @property-read int $width
 99:  * @property-read int $height
100:  * @property-read resource $imageResource
101:  */
102: class Image extends Object
103: {
104:     /** {@link resize()} only shrinks images */
105:     const SHRINK_ONLY = 1;
106: 
107:     /** {@link resize()} will ignore aspect ratio */
108:     const STRETCH = 2;
109: 
110:     /** {@link resize()} fits in given area so its dimensions are less than or equal to the required dimensions */
111:     const FIT = 0;
112: 
113:     /** {@link resize()} fills given area so its dimensions are greater than or equal to the required dimensions */
114:     const FILL = 4;
115: 
116:     /** {@link resize()} fills given area exactly */
117:     const EXACT = 8;
118: 
119:     /** @int image types {@link send()} */
120:     const JPEG = IMAGETYPE_JPEG,
121:         PNG = IMAGETYPE_PNG,
122:         GIF = IMAGETYPE_GIF;
123: 
124:     const EMPTY_GIF = "GIF89a\x01\x00\x01\x00\x80\x00\x00\x00\x00\x00\x00\x00\x00!\xf9\x04\x01\x00\x00\x00\x00,\x00\x00\x00\x00\x01\x00\x01\x00\x00\x02\x02D\x01\x00;";
125: 
126:     /** @deprecated */
127:     const ENLARGE = 0;
128: 
129:     /** @var resource */
130:     private $image;
131: 
132: 
133:     /**
134:      * Returns RGB color.
135:      * @param  int  red 0..255
136:      * @param  int  green 0..255
137:      * @param  int  blue 0..255
138:      * @param  int  transparency 0..127
139:      * @return array
140:      */
141:     public static function rgb($red, $green, $blue, $transparency = 0)
142:     {
143:         return array(
144:             'red' => max(0, min(255, (int) $red)),
145:             'green' => max(0, min(255, (int) $green)),
146:             'blue' => max(0, min(255, (int) $blue)),
147:             'alpha' => max(0, min(127, (int) $transparency)),
148:         );
149:     }
150: 
151: 
152:     /**
153:      * Opens image from file.
154:      * @param  string
155:      * @param  mixed  detected image format
156:      * @return Image
157:      */
158:     public static function fromFile($file, & $format = NULL)
159:     {
160:         if (!extension_loaded('gd')) {
161:             throw new NotSupportedException("PHP extension GD is not loaded.");
162:         }
163: 
164:         $info = @getimagesize($file); // @ - files smaller than 12 bytes causes read error
165: 
166:         switch ($format = $info[2]) {
167:             case self::JPEG:
168:                 return new static(imagecreatefromjpeg($file));
169: 
170:             case self::PNG:
171:                 return new static(imagecreatefrompng($file));
172: 
173:             case self::GIF:
174:                 return new static(imagecreatefromgif($file));
175: 
176:             default:
177:                 throw new UnknownImageFileException("Unknown image type or file '$file' not found.");
178:         }
179:     }
180: 
181: 
182:     /**
183:      * Get format from the image stream in the string.
184:      * @param  string
185:      * @return mixed  detected image format
186:      */
187:     public static function getFormatFromString($s)
188:     {
189:         $types = array('image/jpeg' => self::JPEG, 'image/gif' => self::GIF, 'image/png' => self::PNG);
190:         $type = Utils\MimeTypeDetector::fromString($s);
191:         return isset($types[$type]) ? $types[$type] : NULL;
192:     }
193: 
194: 
195:     /**
196:      * Create a new image from the image stream in the string.
197:      * @param  string
198:      * @param  mixed  detected image format
199:      * @return Image
200:      */
201:     public static function fromString($s, & $format = NULL)
202:     {
203:         if (!extension_loaded('gd')) {
204:             throw new NotSupportedException("PHP extension GD is not loaded.");
205:         }
206: 
207:         $format = static::getFormatFromString($s);
208: 
209:         return new static(imagecreatefromstring($s));
210:     }
211: 
212: 
213:     /**
214:      * Creates blank image.
215:      * @param  int
216:      * @param  int
217:      * @param  array
218:      * @return Image
219:      */
220:     public static function fromBlank($width, $height, $color = NULL)
221:     {
222:         if (!extension_loaded('gd')) {
223:             throw new NotSupportedException("PHP extension GD is not loaded.");
224:         }
225: 
226:         $width = (int) $width;
227:         $height = (int) $height;
228:         if ($width < 1 || $height < 1) {
229:             throw new InvalidArgumentException('Image width and height must be greater than zero.');
230:         }
231: 
232:         $image = imagecreatetruecolor($width, $height);
233:         if (is_array($color)) {
234:             $color += array('alpha' => 0);
235:             $color = imagecolorallocatealpha($image, $color['red'], $color['green'], $color['blue'], $color['alpha']);
236:             imagealphablending($image, FALSE);
237:             imagefilledrectangle($image, 0, 0, $width - 1, $height - 1, $color);
238:             imagealphablending($image, TRUE);
239:         }
240:         return new static($image);
241:     }
242: 
243: 
244:     /**
245:      * Wraps GD image.
246:      * @param  resource
247:      */
248:     public function __construct($image)
249:     {
250:         $this->setImageResource($image);
251:         imagesavealpha($image, TRUE);
252:     }
253: 
254: 
255:     /**
256:      * Returns image width.
257:      * @return int
258:      */
259:     public function getWidth()
260:     {
261:         return imagesx($this->image);
262:     }
263: 
264: 
265:     /**
266:      * Returns image height.
267:      * @return int
268:      */
269:     public function getHeight()
270:     {
271:         return imagesy($this->image);
272:     }
273: 
274: 
275:     /**
276:      * Sets image resource.
277:      * @param  resource
278:      * @return self
279:      */
280:     protected function setImageResource($image)
281:     {
282:         if (!is_resource($image) || get_resource_type($image) !== 'gd') {
283:             throw new InvalidArgumentException('Image is not valid.');
284:         }
285:         $this->image = $image;
286:         return $this;
287:     }
288: 
289: 
290:     /**
291:      * Returns image GD resource.
292:      * @return resource
293:      */
294:     public function getImageResource()
295:     {
296:         return $this->image;
297:     }
298: 
299: 
300:     /**
301:      * Resizes image.
302:      * @param  mixed  width in pixels or percent
303:      * @param  mixed  height in pixels or percent
304:      * @param  int    flags
305:      * @return self
306:      */
307:     public function resize($width, $height, $flags = self::FIT)
308:     {
309:         if ($flags & self::EXACT) {
310:             return $this->resize($width, $height, self::FILL)->crop('50%', '50%', $width, $height);
311:         }
312: 
313:         list($newWidth, $newHeight) = static::calculateSize($this->getWidth(), $this->getHeight(), $width, $height, $flags);
314: 
315:         if ($newWidth !== $this->getWidth() || $newHeight !== $this->getHeight()) { // resize
316:             $newImage = static::fromBlank($newWidth, $newHeight, self::RGB(0, 0, 0, 127))->getImageResource();
317:             imagecopyresampled(
318:                 $newImage, $this->getImageResource(),
319:                 0, 0, 0, 0,
320:                 $newWidth, $newHeight, $this->getWidth(), $this->getHeight()
321:             );
322:             $this->image = $newImage;
323:         }
324: 
325:         if ($width < 0 || $height < 0) { // flip is processed in two steps for better quality
326:             $newImage = static::fromBlank($newWidth, $newHeight, self::RGB(0, 0, 0, 127))->getImageResource();
327:             imagecopyresampled(
328:                 $newImage, $this->getImageResource(),
329:                 0, 0, $width < 0 ? $newWidth - 1 : 0, $height < 0 ? $newHeight - 1 : 0,
330:                 $newWidth, $newHeight, $width < 0 ? -$newWidth : $newWidth, $height < 0 ? -$newHeight : $newHeight
331:             );
332:             $this->image = $newImage;
333:         }
334:         return $this;
335:     }
336: 
337: 
338:     /**
339:      * Calculates dimensions of resized image.
340:      * @param  mixed  source width
341:      * @param  mixed  source height
342:      * @param  mixed  width in pixels or percent
343:      * @param  mixed  height in pixels or percent
344:      * @param  int    flags
345:      * @return array
346:      */
347:     public static function calculateSize($srcWidth, $srcHeight, $newWidth, $newHeight, $flags = self::FIT)
348:     {
349:         if (substr($newWidth, -1) === '%') {
350:             $newWidth = round($srcWidth / 100 * abs($newWidth));
351:             $percents = TRUE;
352:         } else {
353:             $newWidth = (int) abs($newWidth);
354:         }
355: 
356:         if (substr($newHeight, -1) === '%') {
357:             $newHeight = round($srcHeight / 100 * abs($newHeight));
358:             $flags |= empty($percents) ? 0 : self::STRETCH;
359:         } else {
360:             $newHeight = (int) abs($newHeight);
361:         }
362: 
363:         if ($flags & self::STRETCH) { // non-proportional
364:             if (empty($newWidth) || empty($newHeight)) {
365:                 throw new InvalidArgumentException('For stretching must be both width and height specified.');
366:             }
367: 
368:             if ($flags & self::SHRINK_ONLY) {
369:                 $newWidth = round($srcWidth * min(1, $newWidth / $srcWidth));
370:                 $newHeight = round($srcHeight * min(1, $newHeight / $srcHeight));
371:             }
372: 
373:         } else {  // proportional
374:             if (empty($newWidth) && empty($newHeight)) {
375:                 throw new InvalidArgumentException('At least width or height must be specified.');
376:             }
377: 
378:             $scale = array();
379:             if ($newWidth > 0) { // fit width
380:                 $scale[] = $newWidth / $srcWidth;
381:             }
382: 
383:             if ($newHeight > 0) { // fit height
384:                 $scale[] = $newHeight / $srcHeight;
385:             }
386: 
387:             if ($flags & self::FILL) {
388:                 $scale = array(max($scale));
389:             }
390: 
391:             if ($flags & self::SHRINK_ONLY) {
392:                 $scale[] = 1;
393:             }
394: 
395:             $scale = min($scale);
396:             $newWidth = round($srcWidth * $scale);
397:             $newHeight = round($srcHeight * $scale);
398:         }
399: 
400:         return array(max((int) $newWidth, 1), max((int) $newHeight, 1));
401:     }
402: 
403: 
404:     /**
405:      * Crops image.
406:      * @param  mixed  x-offset in pixels or percent
407:      * @param  mixed  y-offset in pixels or percent
408:      * @param  mixed  width in pixels or percent
409:      * @param  mixed  height in pixels or percent
410:      * @return self
411:      */
412:     public function crop($left, $top, $width, $height)
413:     {
414:         list($left, $top, $width, $height) = static::calculateCutout($this->getWidth(), $this->getHeight(), $left, $top, $width, $height);
415:         $newImage = static::fromBlank($width, $height, self::RGB(0, 0, 0, 127))->getImageResource();
416:         imagecopy($newImage, $this->getImageResource(), 0, 0, $left, $top, $width, $height);
417:         $this->image = $newImage;
418:         return $this;
419:     }
420: 
421: 
422:     /**
423:      * Calculates dimensions of cutout in image.
424:      * @param  mixed  source width
425:      * @param  mixed  source height
426:      * @param  mixed  x-offset in pixels or percent
427:      * @param  mixed  y-offset in pixels or percent
428:      * @param  mixed  width in pixels or percent
429:      * @param  mixed  height in pixels or percent
430:      * @return array
431:      */
432:     public static function calculateCutout($srcWidth, $srcHeight, $left, $top, $newWidth, $newHeight)
433:     {
434:         if (substr($newWidth, -1) === '%') {
435:             $newWidth = round($srcWidth / 100 * $newWidth);
436:         }
437:         if (substr($newHeight, -1) === '%') {
438:             $newHeight = round($srcHeight / 100 * $newHeight);
439:         }
440:         if (substr($left, -1) === '%') {
441:             $left = round(($srcWidth - $newWidth) / 100 * $left);
442:         }
443:         if (substr($top, -1) === '%') {
444:             $top = round(($srcHeight - $newHeight) / 100 * $top);
445:         }
446:         if ($left < 0) {
447:             $newWidth += $left; $left = 0;
448:         }
449:         if ($top < 0) {
450:             $newHeight += $top; $top = 0;
451:         }
452:         $newWidth = min((int) $newWidth, $srcWidth - $left);
453:         $newHeight = min((int) $newHeight, $srcHeight - $top);
454:         return array($left, $top, $newWidth, $newHeight);
455:     }
456: 
457: 
458:     /**
459:      * Sharpen image.
460:      * @return self
461:      */
462:     public function sharpen()
463:     {
464:         imageconvolution($this->getImageResource(), array( // my magic numbers ;)
465:             array( -1, -1, -1 ),
466:             array( -1, 24, -1 ),
467:             array( -1, -1, -1 ),
468:         ), 16, 0);
469:         return $this;
470:     }
471: 
472: 
473:     /**
474:      * Puts another image into this image.
475:      * @param  Image
476:      * @param  mixed  x-coordinate in pixels or percent
477:      * @param  mixed  y-coordinate in pixels or percent
478:      * @param  int  opacity 0..100
479:      * @return self
480:      */
481:     public function place(Image $image, $left = 0, $top = 0, $opacity = 100)
482:     {
483:         $opacity = max(0, min(100, (int) $opacity));
484: 
485:         if (substr($left, -1) === '%') {
486:             $left = round(($this->getWidth() - $image->getWidth()) / 100 * $left);
487:         }
488: 
489:         if (substr($top, -1) === '%') {
490:             $top = round(($this->getHeight() - $image->getHeight()) / 100 * $top);
491:         }
492: 
493:         if ($opacity === 100) {
494:             imagecopy(
495:                 $this->getImageResource(), $image->getImageResource(),
496:                 $left, $top, 0, 0, $image->getWidth(), $image->getHeight()
497:             );
498: 
499:         } elseif ($opacity <> 0) {
500:             imagecopymerge(
501:                 $this->getImageResource(), $image->getImageResource(),
502:                 $left, $top, 0, 0, $image->getWidth(), $image->getHeight(),
503:                 $opacity
504:             );
505:         }
506:         return $this;
507:     }
508: 
509: 
510:     /**
511:      * Saves image to the file.
512:      * @param  string  filename
513:      * @param  int  quality 0..100 (for JPEG and PNG)
514:      * @param  int  optional image type
515:      * @return bool TRUE on success or FALSE on failure.
516:      */
517:     public function save($file = NULL, $quality = NULL, $type = NULL)
518:     {
519:         if ($type === NULL) {
520:             switch (strtolower(pathinfo($file, PATHINFO_EXTENSION))) {
521:                 case 'jpg':
522:                 case 'jpeg':
523:                     $type = self::JPEG;
524:                     break;
525:                 case 'png':
526:                     $type = self::PNG;
527:                     break;
528:                 case 'gif':
529:                     $type = self::GIF;
530:             }
531:         }
532: 
533:         switch ($type) {
534:             case self::JPEG:
535:                 $quality = $quality === NULL ? 85 : max(0, min(100, (int) $quality));
536:                 return imagejpeg($this->getImageResource(), $file, $quality);
537: 
538:             case self::PNG:
539:                 $quality = $quality === NULL ? 9 : max(0, min(9, (int) $quality));
540:                 return imagepng($this->getImageResource(), $file, $quality);
541: 
542:             case self::GIF:
543:                 return $file === NULL ? imagegif($this->getImageResource()) : imagegif($this->getImageResource(), $file); // PHP bug #44591
544: 
545:             default:
546:                 throw new InvalidArgumentException("Unsupported image type.");
547:         }
548:     }
549: 
550: 
551:     /**
552:      * Outputs image to string.
553:      * @param  int  image type
554:      * @param  int  quality 0..100 (for JPEG and PNG)
555:      * @return string
556:      */
557:     public function toString($type = self::JPEG, $quality = NULL)
558:     {
559:         ob_start();
560:         $this->save(NULL, $quality, $type);
561:         return ob_get_clean();
562:     }
563: 
564: 
565:     /**
566:      * Outputs image to string.
567:      * @return string
568:      */
569:     public function __toString()
570:     {
571:         try {
572:             return $this->toString();
573: 
574:         } catch (\Exception $e) {
575:             trigger_error("Exception in " . __METHOD__ . "(): {$e->getMessage()} in {$e->getFile()}:{$e->getLine()}", E_USER_ERROR);
576:         }
577:     }
578: 
579: 
580:     /**
581:      * Outputs image to browser.
582:      * @param  int  image type
583:      * @param  int  quality 0..100 (for JPEG and PNG)
584:      * @return bool TRUE on success or FALSE on failure.
585:      */
586:     public function send($type = self::JPEG, $quality = NULL)
587:     {
588:         if ($type !== self::GIF && $type !== self::PNG && $type !== self::JPEG) {
589:             throw new InvalidArgumentException("Unsupported image type.");
590:         }
591:         header('Content-Type: ' . image_type_to_mime_type($type));
592:         return $this->save(NULL, $quality, $type);
593:     }
594: 
595: 
596:     /**
597:      * Call to undefined method.
598:      *
599:      * @param  string  method name
600:      * @param  array   arguments
601:      * @return mixed
602:      * @throws MemberAccessException
603:      */
604:     public function __call($name, $args)
605:     {
606:         $function = 'image' . $name;
607:         if (function_exists($function)) {
608:             foreach ($args as $key => $value) {
609:                 if ($value instanceof self) {
610:                     $args[$key] = $value->getImageResource();
611: 
612:                 } elseif (is_array($value) && isset($value['red'])) { // rgb
613:                     $args[$key] = imagecolorallocatealpha(
614:                         $this->getImageResource(),
615:                         $value['red'], $value['green'], $value['blue'], $value['alpha']
616:                     );
617:                 }
618:             }
619:             array_unshift($args, $this->getImageResource());
620: 
621:             $res = call_user_func_array($function, $args);
622:             return is_resource($res) && get_resource_type($res) === 'gd' ? $this->setImageResource($res) : $res;
623:         }
624: 
625:         return parent::__call($name, $args);
626:     }
627: 
628: }
629: 
630: 
631: /**
632:  * The exception that indicates invalid image file.
633:  */
634: class UnknownImageFileException extends \Exception
635: {
636: }
637: 
Nette Framework 2.0.11 API API documentation generated by ApiGen 2.8.0