1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-11-30 18:24:29 +01:00
Commit Graph

74 Commits

Author SHA1 Message Date
Zankaria
24ebabb976 Remove 'convert_manual_orient' functionality.
It was supposed to help in case the user had an unspecified imagemagik version that was old in 2013...
2024-02-14 23:34:08 +01:00
Lorenzo Yario
77bec421d9
webp 2024-02-14 01:18:45 -08:00
Zankaria
fb3843efd5 Remove the custom BMP polyfill.
It was previously required to support PHP < 7.2, but now the minimum supported version is PHP 7.4
2024-02-07 23:24:34 +01:00
27chan
1d8a577029
Merge pull request #440 from discomrade/patch-1
Fix custom thumb_ext when using ImageMagick convert
2022-06-06 22:06:16 -03:00
Fredrick Brennan
9745e9d854 Ignore recently added graphicsmagick check
Closes #445.
2021-11-03 22:55:55 -04:00
discomrade
54cd4d41f2
Fix custom thumb_ext for ImageMagick convert
Fixed breaking typo in previous commit
2021-06-23 12:40:27 +00:00
discomrade
a752a3930c
Fix custom thumb_ext for ImageMagick convert
When using ImageMagick's convert tool, the output defaults to the input format if no file extension or format is specified.
The temp file currently has no extension, so a $config['thumb_ext'] value has no effect on the image.
By appending the thumb_ext to the temp output file, it will convert the image to the intended format.

You can see this issue present on lainchan, where thumbnails have a .png filename but are not really PNG files when the input is a .jpg, for example.
2021-06-23 11:52:29 +00:00
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