Commit Graph

38 Commits

Author SHA1 Message Date
Barış Soner Uşaklı
a73bcabad8 don't call .jpeg quality on pngs 2018-10-24 10:03:00 -04:00
Barış Soner Uşaklı
9c022afae1 Parse int (#6853)
* Store config fields as JSON in the db

Fewer parseInts

* Remove unnecessary parseInts

* remove some dupe code add tests

* remove console.log

* remove more parseInts

* WIP: read meta.configs defaults from defaults.json

remove more parseInts

* more work

* add log for failing test

* update admin pwd

* fix tests, dont require posts/cache before configs are initialized

* handle saves

* Test boolean conditions

* remove more parseInts

* Fix boolean values

* remove lots more parseInts

* removed json parsing

* renamed var to number

* categories dont have timestamp
2018-10-21 16:47:51 -04:00
Barış Soner Uşaklı
13a1497617 closes #6801 2018-10-04 11:38:42 -04:00
Barış Soner Uşaklı
71ccd67665 closes #6722
calculate size of base64 image from buffer, still not perfect but better than string.length
2018-09-20 19:47:44 -04:00
Barış Soner Uşaklı
b7ead6dc9c Replace jimp with sharp (#6774)
* add probe image size and max image size

* replace jimp and image-probe with sharp

* better name for test

* resize with just path

* resize thumb inplace

* use filename
2018-09-20 17:05:52 -04:00
Barış Soner Uşaklı
75e2ab8957 remove unnecessary code 2018-03-21 10:09:09 -04:00
Barış Soner Uşaklı
dcb6af5768 closes #6373 2018-03-19 16:24:22 -04:00
Peter Jaszkowiak
c47c47f7e3 Use less memory to build translation files (#6070)
* Change languages build to use less memory

Add graceful-fs so no ned to worry about fs limits

* Specify encoding for fs.readFile

Use eachLimit since graceful-fs handles that now
2017-11-16 17:43:52 -05:00
Peter Jaszkowiak
da9da8190f Bump dependencies
Bumping eslint & configs meant making some linting fixes

For future reference, the `xmlhttprequest-ssl` library must be of equal versioning to the one in `engine.io-client`, otherwise it won't be deduped which causes the socket.io tests to fail
2017-10-02 09:24:27 -04:00
manolino
9cb098bb0b Implements Jimp exitRotate() new method (jimp 0.2.28) to sove incoherent rotations when scaling images. 2017-08-28 14:34:42 -04:00
Baris Usakli
11d9410229 fix test and image normalize test 2017-05-26 16:37:31 -04:00
Peter Jaszkowiak
dd2b930824 Resolve merge conflicts, minify only .js files 2017-02-23 18:31:49 -07:00
barisusakli
ef90702049 closes #5459 2017-02-20 21:28:02 +03:00
Peter Jaszkowiak
a5a3f3089a ESlint no-mixed-operators 2017-02-18 01:51:11 -07:00
Peter Jaszkowiak
2ba46808a1 ESlint one-var, fix comma-dangle 2017-02-17 20:20:42 -07:00
Peter Jaszkowiak
bc1d70c126 ESlint comma-dangle 2017-02-17 19:31:21 -07:00
Peter Jaszkowiak
d31499a860 Fix tests rewriting logo.png 2017-02-03 18:29:09 -07:00
HeeL
4a3c31b2dc Fix space-before-function-paren linter rule 2016-10-13 11:43:39 +02:00
HeeL
3fa1c1f927 Fix space-infix-ops linter rule 2016-10-13 11:42:29 +02:00
barisusakli
4aac8bbe6a closes #2222 2016-08-30 13:10:52 +03:00
barisusakli
acc030e6da added filter:image.size
fix uploading of gifs if imagemagick plugin is installed but no image
upload plugins are present.
2016-05-09 22:25:56 +03:00
barisusakli
fea18a050f closes #4590 2016-05-01 12:44:43 +03:00
Julian Lam
5858d914bf closes #4550 2016-04-20 13:58:31 -04:00
barisusakli
96a3db6365 only send back err 2016-03-09 14:19:49 +02:00
Julian Lam
ebed9d641c Add new ACP option to upload Touch Icon, #3668
Also added a number of fixes for mobile enhancements, such
as serving a manifest.json file for Android devices, and
serving proper link tags for all uploaded touch icons.

This commit also creates a new template helper for link tags.
2015-09-24 12:05:45 -04:00
Julian Lam
bac04d7ee6 Replace lwip library with jimp native lib for image manipulation 2015-09-21 15:36:26 -04:00
barisusakli
a14810a2e0 wrap lwip.open in try catch, it throws on unknow types, closes #3632 2015-09-18 09:42:09 -04:00
barisusakli
830d27caef dont ignore error 2015-08-18 15:17:07 -04:00
Julian Lam
e523ef7c17 added plugin hooks so that imagemagick can still be called, as a plugin, for image manipulation tasks, falling back to using lwip 2015-06-04 12:32:39 -04:00
Alpacatty
37ad81a2b0 Swap out ImageMagick for lwip 2015-05-30 20:04:42 +02:00
barisusakli
4e4a583d9d took out the meta config check from image.js 2014-08-08 17:30:37 -04:00
Julian Lam
4e0ccbf0c6 fixed #1515 2014-05-10 23:56:45 -04:00
barisusakli
8ce3e44d7b closes #1418 2014-04-27 17:40:39 -04:00
Micheil Smith
3e82cab398 Add missing new lines at end of files. 2014-04-10 20:56:53 +01:00
barisusakli
6774f0f52f fit image to 128x128 and keep aspect ratio, closes #1240 2014-03-18 14:27:00 -04:00
Baris Soner Usakli
096f352c82 closes #1130 2014-03-05 23:00:27 -05:00
Baris Soner Usakli
5aed1208c0 lol this was saving to 'uploadPath' 2014-02-20 21:26:05 -05:00
Baris Soner Usakli
20ec8ca768 added image file 2014-02-09 00:34:05 -05:00