Shish
00d4f9f75c
always have a Themelet, never null
2023-06-27 16:11:14 +01:00
Shish
36951db563
use DataUploadEvent fields rather than required metadata
2023-02-24 22:42:03 +00:00
Shish
5a64e8729b
nits
2023-01-11 11:15:26 +00:00
Shish
bce2d55744
Namespaces are one honking great idea—let's do more of those!
2023-01-10 22:44:09 +00:00
Shish
3d9e32e919
new php-cs-fixer
2021-12-14 18:32:47 +00:00
Shish
77f7121e26
drop php7.3 support, make use of 7.4 features
2021-03-14 23:43:50 +00:00
Matthew Barbour
984c9702ec
The great MIMEing
2020-06-25 00:42:34 +01:00
Matthew Barbour
63b2601e67
Mime type handling overhaul
...
Changed mime type map to deal with the reality that certain file types have multiple extensions and/or multiple mime types, as well as constants supporting all of the data. Created new functions using the updated mime type map to resolve mime types and extensions. Updated various items around the project that determine mime/extension to take advantage of the new functions.
2020-06-03 19:47:40 +01:00
Matthew Barbour
30761e6d1f
Added mime check to svg check so that it doesn't try to load every upload into memory
2020-02-24 14:29:27 +00:00
Shish
b5e9daeab5
dedupe more data handling
2020-02-23 18:37:22 +00:00
Shish
674d3fc6fa
dedupe create_image_from_data
2020-02-23 18:19:27 +00:00
Shish
77fc510bb3
DataUploadEvent already asserts that file exist
2020-02-23 18:14:35 +00:00
Shish
fd7c774f5b
handle_svg doesn't need to override ALL of onDataUpload
2020-02-08 20:44:23 +00:00
Shish
e46b319295
set theme classes
2020-02-04 00:46:36 +00:00
Shish
a5c7faeff7
move stream_file to its own function
2020-02-01 21:20:32 +00:00
Shish
deb26ff7d3
faster svg thumbs
2020-02-01 18:51:57 +00:00
Shish
4e57e04ddf
fix a lot of tests
2020-01-29 20:22:50 +00:00
Shish
9eb5acf2dc
use strict types
2020-01-26 16:27:56 +00:00
Matthew Barbour
f594e9066e
Added image flag
2019-10-18 16:27:04 +01:00
Shish
794e4ebb7d
merge
2019-10-01 10:44:52 +01:00
Shish
a6bb15d859
formatting
2019-09-29 14:30:55 +01:00
Matthew Barbour
de98e86938
ExtensionInfo conversions what have I done
2019-08-07 15:40:01 -05:00
Matthew Barbour
b1db833d51
Added additional media properties to the images table, video, audio, length, and lossless.
...
Added new event to handle fetching media properties like height, width, and the newly added fields, and admin controls to manually scan files for their properties.
Added a search terms content:video and content:audio to search for images that do (or do not) have those flags.
2019-07-08 08:07:09 -05:00
Matthew Barbour
a41e99d1af
Renamed graphics extension to media extension
2019-07-08 08:07:08 -05:00
Matthew Barbour
7cc725fbc1
Moved graphics engine constants to their own class
2019-07-08 08:07:07 -05:00
Matthew Barbour
3859e27839
New Graphics extension
...
Added constants to several extensions
2019-07-08 08:07:02 -05:00
Matthew Barbour
5eb4a66ab7
Added merged indicator to DataUploadEvent and ImageAddEvent
...
Changed merge process so that the ID of the merged image can make it back through the event chanin
2019-06-19 20:19:38 -05:00
Matthew Barbour
826c623538
PageMode constants
2019-06-18 21:04:31 -05:00
Matthew Barbour
37fe743f65
Changed "images" and "thumbs" usages to constants
2019-06-15 11:20:11 -05:00
Matthew Barbour
ed4b6bc4a0
Updated handle_ico to use new common image thumbnailing and to inherit DataHandlerExtension
2019-06-14 13:00:59 -05:00
Shish
064b24ffc1
formatting pass
2019-06-14 13:47:50 +01:00
Matthew Barbour
eb4292316d
Added webp upload and thumbnailing support
...
Bug fixes and consolidation of various thumbnail and resize functionality
Changed resize/rotate extensions to use replace image event
Added content-disposition header to image responses to provide a human-friendly filename when saving
Added more bulk thumbnail regeneration tools
Tweaks to bulk actions to correct totals when batching items
2019-06-09 14:14:04 -05:00
Shish
34b05cca7c
PSR-2. I'm not a huge fan, but ugly consistency beats no consistency...
2019-05-28 17:59:38 +01:00
Shish
5ec3e89884
php7.1 all the things
2019-05-28 17:31:20 +01:00
Shish
60d693d323
use svg-sanitize to sanitize SVG files
2018-02-20 22:06:50 +00:00
Shish
bc68137797
use svg-sanitize to sanitize SVG files
2018-02-20 22:00:24 +00:00
jgen
f492c6c2c3
Ensure that the Image object tag_array and the metadata array tags are always arrays.
2017-05-12 00:57:50 -07:00
Daku
2b62cc8171
loading SVG via <img> instead of <object> to stop inline JS execution
2017-03-18 00:13:16 +00:00
im-mi
17f71094f2
Use the size of the outermost svg element
...
... in case there are nested svg elements.
2016-09-03 05:36:14 -04:00
Shish
bed04a1230
assert that metadata['tags'] is an array
2016-07-30 23:02:14 +01:00
Shish
7be951b271
Convert tags from user-supplied string to array once, on input
...
This results in a fuckton of refactoring and code cancelling out
other code -- we no longer have a whole bunch of places trying
to support string params and array params, and doing their own
esaping and unescaping, never being quite sure if the data they've
been passed is escaped or not.
Also adds a bunch of type hinting, since we can now know what
data we're dealing with better.
2016-07-30 22:11:49 +01:00
Shish
dc10a18086
lots of minor doc tweaks, type hints, etc
2016-06-19 17:41:40 +01:00
Shish
1ac88e8923
more comments
2015-09-27 12:38:48 +01:00
Shish
35a4f385b3
phpstorm tidying
2015-09-12 11:43:28 +01:00
jgen
4f51e942be
Updating/Fixing/Adding more comments with the PHP Doc style.
2014-04-27 15:33:57 -04:00
jgen
1ca3865a1c
Removing the closing PHP "?>" tag as per style guidelines. (Also see: https://stackoverflow.com/questions/4410704/why-would-one-omit-the-close-tag )
2014-04-25 22:54:51 -04:00
Shish
db5aa56300
remove a bunch of dead code
2014-03-29 11:44:34 +00:00
Shish
7b68d8ebfd
use new-style constructors everywhere
2014-03-22 09:00:59 +00:00
Shish
7dd929e5a8
remove a whole load of event->user variables that weren't used -- things should be using global user
2012-08-18 19:45:39 +01:00
Shish
67f1c1c51d
store enabled exts in a config file, rather than moving directories around
2012-03-31 18:59:28 +01:00