Skip to content

Commit

Permalink
Set GD to ignore invalid JPEGs
Browse files Browse the repository at this point in the history
  • Loading branch information
Vlad Ghita committed Mar 17, 2013
1 parent 1f6ce1f commit 60ece61
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/image.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<?php

@ini_set('display_errors', 'off');
@ini_set("gd.jpeg_ignore_warning", 1);

define('DOCROOT', rtrim(realpath(dirname(__FILE__) . '/../../../'), '/'));
define('DOMAIN', rtrim(rtrim($_SERVER['HTTP_HOST'], '/') . str_replace('/extensions/jit_image_manipulation/lib', NULL, dirname($_SERVER['PHP_SELF'])), '/'));
Expand Down

0 comments on commit 60ece61

Please sign in to comment.