Fredrick Brennan
b078ffb1e4
Close #282
2018-05-10 17:33:07 +08:00
czaks
300e9e7e71
fix some png images being discarded
2015-03-31 05:20:00 +02:00
8chan
6052ed8d3d
SECURITY: imagemagick/graphicsmagick was ignoring all errors
...
So, in a much older patch I had a problem where an incorrect RGB
profile would make image uploads fail. I fixed this by using strpos
against the error message...but didn't check the return value
correctly.
That means that any error from gm/im was ignored. This caused people
to upload too large images and flood /b/ with 1 x 10000 pixel images
My fault, patched now. Sorry about that.
Conflicts:
inc/image.php
2014-10-12 10:23:03 +02:00
czaks
7283c4caee
fix pngs better
2014-02-22 15:54:46 +01:00
czaks
c0d3a23574
actually fix png posting for some images not fully supported by gm/imagemagick
2014-02-22 15:47:29 +01:00
czaks
ede30d5eed
png resizing: depending on error messages with pngs is flawy
2014-02-10 23:44:20 +01:00
czaks
0264a5ca6d
inc/image.php: i18n
2014-01-04 19:26:44 +01:00
czaks
9a5f3b2e31
image resizing: fix a problem with some pngs; reported by urban
2014-01-04 19:09:30 +01:00
Michael Foster
7f0de93608
Cleaner check to make sure inc/ files aren't accessed directly.
2013-09-06 20:12:04 +10:00
Michael Foster
fcb88b16cd
Bugfix: Corrupt images were not getting removed from /tmp (convert, gm, and gifsicle)
2013-08-28 17:20:29 +10:00
czaks
c672b700b0
gifsicle: temporary fix; STI: gifsicle REALLY sends that to stderr for every gif shorter than 50 frames
2013-08-11 21:04:20 +10:00
Michael Foster
373fb99a7f
Bugfix: exif_read_data() Incorrect APP1 Exif Identifier Code
2013-08-04 23:02:15 -04:00
Michael Foster
acfda35648
gifsicle: redirect stdout to /dev/null but keep stderr going to stdout
2013-08-04 16:32:36 -04:00
czaks
a3cf56a768
gifsicle: make it finally work
2013-08-04 16:27:58 -04:00
Michael Foster
33a07e9ee0
bug fix, wrong index
2013-08-04 05:11:46 -04:00
czaks
76101cad51
fix gifsicle issue connected with frame limit
2013-08-04 04:49:47 -04:00
Michael Foster
3d2de07a1f
Can't auto-orient a non-JPEG
2013-08-03 22:20:39 -04:00
Michael Foster
ac4306555b
Fix for instances with old GraphicsMagick or ImageMagick versions (no -auto-orient).
2013-08-03 22:14:25 -04:00
Michael Foster
b373b39f44
Bugfix: gm and auto-orient thumbnailing
2013-08-03 21:47:24 -04:00
Michael Foster
b67fc7d54e
Only use identify
if we have to
2013-08-03 20:50:37 -04:00
Michael Foster
5300ffadf1
Better image processing. Add support for GraphicsMagick (a fork of ImageMagick) and exiftool
(for stripping EXIF metadata quickly).
2013-08-03 20:34:59 -04:00
Michael Foster
784c3ffadb
Accidentally commit'd debug stuff/errors
2013-08-03 00:28:54 -04:00
Michael Foster
1d37e81ade
Better error handling/displaying with $config['debug'] and $config['verbose_errors']
2013-08-03 00:22:28 -04:00
Michael Foster
62f8ea4813
Better command-line ImageMagick image processing
2013-08-02 23:18:25 -04:00
Michael Foster
d99eba2c18
syntax error in last commit
2013-08-02 21:37:44 -04:00
Michael Foster
1d7de12281
Fix bug
2013-08-02 21:23:18 -04:00
Michael Foster
169dc74938
Fix last commit
2013-08-02 20:56:30 -04:00
Michael Foster
4fce9b63ae
Major config.php cleanup and a few minor misc fixes.
2013-08-02 20:52:58 -04:00
Michael Foster
40ab2e0c17
Don't redraw image again after correcting image orientation; Correct image orientation with convert+gifsicle too
2013-08-01 21:28:16 -04:00
Michael Foster
22f3a95e0e
convert+gifscale didn't respect $config['thumb_keep_animation_frames']
2013-08-01 04:24:34 -04:00
Michael Foster
4851d4cabe
Forgot "global $config" here
2013-08-01 03:51:50 -04:00
Michael Foster
573f86ccae
Tiny code clean-up
2013-07-31 03:35:07 -04:00
Marcin Łabanowski
73cb2bdf2c
convert+gifsicle: fix previous commit
2013-07-31 03:33:12 -04:00
Marcin Łabanowski
b7e725bf3e
Support for resizing gifs using gifsicle with resizing the rest using ImageMagick
2013-07-31 03:33:06 -04:00
Marcin Łabanowski
f9cdf31ede
Fix animated .gif conversion when $config['thumb_ext'] == ''
2013-07-31 03:32:44 -04:00
Michael Foster
308f557fd5
Option to automatically strip EXIF metadata from JPEGs
2013-07-21 15:50:45 -04:00
Michael Save
7a68fc9525
Copyright and license update for 2013.
2013-01-20 21:23:46 +11:00
Michael Save
913010cff5
minor consistency cleanup
2012-08-27 21:50:15 +10:00
Michael Save
5c9fcfc50e
Bugfix: Fix transparancy with convert
2012-04-19 10:27:47 +10:00
Michael Save
cde7da9c4f
Fix animated thumbnails with convert
and Imagick
2012-04-18 00:07:37 +10:00
Michael Save
51675e7a9b
code cleanup
2012-04-13 00:18:19 +10:00
Michael Save
dd0f421015
better anti-bot check
2012-04-12 17:20:49 +10:00
Michael Save
c9423a2c34
large cleanup
2012-04-12 02:49:22 +10:00
Michael Save
c136d44894
Better upload handling (don't move file before handling it)
2012-03-18 19:53:56 +11:00
Michael Save
b561066a4c
convert: Suppress warnings when trying to delete temporary file.
2012-03-18 00:57:11 +11:00
Michael Save
c6478b378f
convert: Don't rely on PHP GD to get the image dimensions; use identify
.
2012-03-17 22:49:56 +11:00
Michael Save
fe7182404f
Better thumbnailing with convert
.
2012-03-17 22:28:23 +11:00
Michael Save
6ab3ec5da9
convert: chmod(664) after moving temporary image
2012-03-17 12:02:51 +11:00
Michael Save
b82e3a814a
Thumbnail the first frame only.
2012-03-17 11:55:16 +11:00
Michael Save
4c3486bec9
Thumbnailing alternative: convert
(command line ImageMagick instead of PHP bindings)
2012-03-17 10:32:50 +11:00