Tobias Diekershoff
30a5ef33b0
REUSE src directory
2024-08-24 15:27:00 +02:00
Michael
60f5fd8188
Many deprecated function calls are replaced
2024-05-13 21:37:15 +00:00
Michael
5751e024c0
Request type set for all HTTP requests
2024-05-12 17:53:21 +00:00
Matthew Exon
c5b8abcaf0
round scaled dimensions up to avoid zero size
2024-04-13 21:50:17 +02:00
Michael Vogel
08fa51d0bb
Fix the handling of unhandled image types and of animations ( #13904 )
...
* Fix the handling of unhandled image types and of animations
* Avoid warnings
2024-02-17 15:46:48 +01:00
Michael
7d10518e94
Revert "Fix unhandled image detection"
...
This reverts commit 1069cfb570
.
2024-02-17 10:50:09 +00:00
Michael
1069cfb570
Fix unhandled image detection
2024-02-17 10:46:48 +00:00
Michael Vogel
14e5b06029
Image handling reworked, new image formats added ( #13900 )
...
* Image handling reworked, new image formats added
* Updated messages.po
* The dot is now part of the file extension
* Added WebP in install documentation
* Handle unhandled mime types
* Fixed animated picture detected
2024-02-17 07:45:41 +01:00
Michael
a12fbf7ff3
Move to addon
2024-01-14 19:18:41 +00:00
Michael
3a60229e5c
Use OCR to fetch text in images
2024-01-13 19:30:20 +00:00
Michael
89e7420237
Friendica copyright changed from 2023 to 2034
2024-01-02 20:57:26 +00:00
Michael
0279b3dee9
Fix warning: Undefined array key "mime"
2023-11-22 19:16:09 +00:00
Michael
170998da1a
Allow to upload pictures up to the allowed system upload size
2023-11-17 12:19:01 +00:00
Michael
1010443031
Simplify image url
2023-05-17 20:30:45 +00:00
Michael
2b3c1972db
Differentiate between no description or an empty description
2023-05-10 17:59:25 +00:00
Michael
992b6eed1d
Fixed test - again
2023-05-10 16:57:08 +00:00
Michael Vogel
45dda2c064
Update src/Util/Images.php
...
Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
2023-05-10 17:06:16 +02:00
Michael
3554b61508
Fix tests
2023-05-10 08:48:21 +00:00
Michael
c5ca5bfdf8
Function renamed
2023-05-10 07:54:15 +00:00
Michael
7d91cc73de
Unifiy the creation of photo links
2023-05-09 20:44:58 +00:00
Michael
1a98961c3c
Issue 12858: Peertube avatars can now be fetched
2023-03-18 06:41:35 +00:00
Hypolite Petovan
1874a32728
Happy New Year 2023!
2023-01-01 09:36:24 -05:00
Michael
5d3248d57b
Handle some fatal errors
2022-12-11 16:48:36 +00:00
Michael
a5be5b27e3
Support Blurhash
2022-12-04 13:29:21 +00:00
Roland Häder
fd8f4269ff
Reformatted code
2022-06-23 17:30:17 +02:00
Roland Häder
eb231bc548
Fixed: ?? didn't work here as bool won't be seen as null
2022-06-22 17:09:53 +02:00
Roland Häder
feec96cbc4
Return empty array on error (I hope it works this way).
2022-06-22 14:36:47 +02:00
Roland Häder
12add2fb64
$data can turn into bool here
2022-06-22 14:36:46 +02:00
Roland Häder
08f55f0358
Ops, forgot to rename these, too.
2022-06-22 14:36:46 +02:00
Roland Häder
84bfc37bf1
Changes:
...
- added more type-hints
- added missing documentation
2022-06-22 14:36:45 +02:00
Philipp
e299fc67c8
Introduce "accept_header" as specific argument to the http client
2022-04-02 21:16:53 +02:00
Philipp
73c3b21665
Move ACCEPT constants to own "enum" class
2022-04-02 20:26:11 +02:00
Michael
1fae0123ec
Some more "accept" parameters are added
2022-03-29 06:24:20 +00:00
Hypolite Petovan
17d49422b4
Hash the URL before using it as cache key in Util\Images::getInfoFromURLCached
...
- This prevents oversized URL from stunting the database cache
2022-02-18 09:19:36 -05:00
Michael
95f085b7ac
API: The legacy API finally moved
2022-01-15 21:38:19 +00:00
Balázs Úr
e56a53647b
Update copyright
2022-01-02 08:27:47 +01:00
Philipp
13a91e63aa
Rename DI::httpRequest() into DI::httpClient()
2021-08-25 21:54:54 +02:00
Michael
f5a7b0141b
Added todo
2021-07-19 06:55:23 +00:00
Michael
fa00a4ee32
Simplyfied picture fetching
2021-07-19 06:19:13 +00:00
Michael
2647514603
Detection of local requests
2021-07-19 06:14:14 +00:00
Michael
fccb725651
Unneeded workaround removed
2021-07-05 05:11:35 +00:00
Balázs Úr
054c301ef0
Update copyright
2021-03-29 08:40:20 +02:00
Philipp
a6fc9cd32e
Remove $binary flag for HTTPRequest::get(), HTTPRequest::fetch(), HTTPRequest::fetchAll() (deprecated since PHP 5.1.3)
2020-10-18 20:56:31 +02:00
Philipp
0449077126
Revert "Fix IHTTPResult::getHeader() - Now returns a string array, like expected - Fix usages - Fix dataset"
...
This reverts commit 80bd0a4d
2020-10-11 23:25:40 +02:00
Philipp
40349bfdc4
Revert "IHTTPResult::getContentType is now a string again"
...
This reverts commit 40b11442
2020-10-11 23:25:29 +02:00
Philipp
e17befb7d6
Use last entry for Content-Type
2020-10-10 23:11:30 +02:00
Philipp
40b11442c2
IHTTPResult::getContentType is now a string again
2020-10-10 23:11:30 +02:00
Philipp
80bd0a4d5a
Fix IHTTPResult::getHeader()
...
- Now returns a string array, like expected
- Fix usages
- Fix dataset
2020-10-10 23:11:30 +02:00
Hypolite Petovan
afb882048e
Generate callstack value from inside Profiler::saveTimestamp
...
- Save a massive amount of time computing callstacks when profiling is disabled
2020-07-27 02:33:05 -04:00
nupplaPhil
657d08f09f
Rename "fetchUrl" and "fetchUrlFull" to "fetch" and "fetchFull"
2020-07-21 03:15:53 -04:00