Commit 0c3619e
Use filestreams (#1351)
* Started to refactor GdImageHandler
* Added exceptions
* Refactored interface
* Refactored GD handler
* Streams for all real image handlers
* Adopted image handlers to file classes.
* Fixed generic/automatic image handler.
* A lot of work
* Remove `checksum` from `Extractor`
* Cleaned up MOVFormat
* Refactored handling of Google Motion Pictures and finalized AddStandaloneStrategy.
* Made collection of stream statistics optional on save.
* Removed ImageHandler as a service.
* Fixed size variant factory and interface
* Use exception-free report in ImageHandler
* Repaired exception handling in AddStandaloneStrategy
* Fixed exception handling in RotateStrategy
* Fixed exceptions and checksum in AddPhotoPartnerStrategy
* Somehow unrelated refactoring of SizeVariantNamingStrategy
* Follow up of unrelated fix of naming strategy.
* Fixed AddVideoPartnerStrategy
* New naming strategies for size variants
* Switched to SizeVariantSharedPrefixRandomNamingStrategy
* fix-to-squash: Fixes in AddStandaloneStrategy
* Fixed unrelated error in test which suddenly fails
* fix-to-squash: Repaired type errors und undefined variables in ImgagickHandler
* Refactored tests
* More tests
* More tests
* Improved tests
* Remove dead code
* More tests
* Removed dead code
* Update dependencies due to bug in Laravel
* Fixed a lot of tests
* More tests
* Fixed test
* Uses helper method `public_path`
* Removed storage facade from test.
* Cleaned up hard-coded paths
* Make tests more pretty
* Added test for rotated photo and broken motion photo
* Added "Location" EXIF tag to sample
* Refactored Photo Rotation Tests
* Refactored upload-method
* More tests for photo rotation.
* Added Archive Tests
* More tests for archive
* Fixed SonarCloud issues
* Fixed typo
* Added test for import via download.
* Bugfix for falsely skipped image optimization.
* Added @ildyria's suggestion for a naming strategy
* Moved repeated test code into traits
* Refactored test for adding photos in preperation for testing GD handler.
* Fixed GD handler
* Added test for GD handler
* Fix in GD image handler
* Added different file types for test
* Added rotation tests for GD handler
* Added samples for all kind of auto-orientation.
* Removed dead code
* Removed absolute path from FlysystemFile.
* Bug fix for naming strategies wrt. raw variants, part I.
* Added negative test for unsupported raw.
* Bug fix for naming strategies wrt. raw variants, part II.
* Added positive tests for raw upload.
* Quick fix to track down error which only occurs with Github workflows
* Exchanged PDF with XCF as raw test case, because Githib workflows forbid PDF due to security concerns.
* Revert "Quick fix to track down error which only occurs with Github workflows"
This reverts commit 00e2c09.
* Exchanged XCF with TIFF as raw test case, because Githib craches for XCF.
* Test for import of supported/unsupported raw file via URL
* Make SonarCloud happy about string constants.
* Removed dead code
* Split command tests and make command tests runnable (renamed to ...Test).
* Fixed trivial bugs in commands
* Make Sonar Cloud happy.
* Make Sonar Cloud even more hapyy.
* First positive test for command `lychee:generate_thumbs`.
* Added test to re-create video thumbnail.
* Fixed error when re-creating a subset of missing size variants
* Test set creation time from file creation time.
* More tests (for ghostbuster)
* More tests (for ghostbuster), this time for real.
* Nuked unused size variants
* Fixed `makefile` as pointed out by @qwerty287
* Added stub for GD to make PHPStan happy.
* Apply suggestions from code review
Co-authored-by: Kamil Iskra <kamil.01482@iskra.name>
* Re-phrased comment as suggested by code review.
* Remove stupid addition (sorry)
* Update app/Assets/SizeVariantGroupedWithRandomSuffixNamingStrategy.php
Co-authored-by: Kamil Iskra <kamil.01482@iskra.name>
* Update app/Assets/SizeVariantGroupedWithRandomSuffixNamingStrategy.php
Co-authored-by: Kamil Iskra <kamil.01482@iskra.name>
* Update app/Actions/Photo/Strategies/AddStandaloneStrategy.php
Co-authored-by: Matthias Nagel <matthias.h.nagel@posteo.de>
* Update app/Actions/Photo/Strategies/RotateStrategy.php
Co-authored-by: Kamil Iskra <kamil.01482@iskra.name>
* Update app/Assets/SizeVariantGroupedWithRandomSuffixNamingStrategy.php
Co-authored-by: Kamil Iskra <kamil.01482@iskra.name>
* Update app/Image/GdHandler.php
Co-authored-by: Kamil Iskra <kamil.01482@iskra.name>
* Apply suggestions from code review
Co-authored-by: Kamil Iskra <kamil.01482@iskra.name>
* Fix comment.
* Apply suggestions from code review
Co-authored-by: Kamil Iskra <kamil.01482@iskra.name>
* Simplified code for compression quality
* Fixed condition for creation of size variants
* Updated comment on Quicktime container
* Merge saveFrame and extractFrame into one and removed optimization.
* Apply suggestions from code review
Co-authored-by: Kamil Iskra <kamil.01482@iskra.name>
* Fixed subleties
* Fixed file permissions on uploading
* Fix efficiency regression for GD handler
* Fixed base test class to avoid crash with chmod
* Test for all size variants in simple upload
* Avoid failing tests due to incorrect file owner
* Efficiency boost for GD handler
* Added "dry-run" to console command "fix-permissions"
* better messages
* fix phpstan with useless default
* Update app/Console/Commands/FixPermissions.php
Co-authored-by: Kamil Iskra <kamil.01482@iskra.name>
* Update app/Actions/Diagnostics/Checks/BasicPermissionCheck.php
Co-authored-by: Kamil Iskra <kamil.01482@iskra.name>
* Update app/Image/GdHandler.php
Co-authored-by: Kamil Iskra <kamil.01482@iskra.name>
* fix commands (because yes, I tested them, they didn't work)
* nice message if nothing to fix is required
* fix phpstan
* fix tests
* Moved command from composer to migration
* Added disclaimer to end of command `fix-permissions`
* Make file permissions more configurable
* Added config option to `.env` file
* Update app/Actions/Diagnostics/Checks/BasicPermissionCheck.php
Co-authored-by: Kamil Iskra <kamil.01482@iskra.name>
* Update .env.example
Co-authored-by: Kamil Iskra <kamil.01482@iskra.name>
* Update app/Console/Commands/FixPermissions.php
Co-authored-by: Kamil Iskra <kamil.01482@iskra.name>
* Made permission check more robust (no silent failure); no hard-coded disk name
* Repaired broken umask
* Fixed `neither ... nor` vs. `not ... or`
* Fixed "neither ... nor" vs. "not ... or"
* Added comment about bug for world-writeable directories
* Fixed unused parameter.
* bump to version 4.5.2
Co-authored-by: Kamil Iskra <kamil.01482@iskra.name>
Co-authored-by: ildyria <beviguier@gmail.com>
Co-authored-by: Benoît Viguier <ildyria@users.noreply.github.com>1 parent 03b5062 commit 0c3619e
File tree
96 files changed
+5377
-2481
lines changed- app
- Actions
- Diagnostics
- Checks
- Import
- Extensions
- Photo
- Extensions
- Strategies
- Assets
- Console/Commands
- Contracts
- DTO
- Exceptions
- Http/Middleware
- Image
- Metadata
- ModelFunctions
- Models
- Extensions
- Providers
- config
- database/migrations
- phpstan/stubs
- public/uploads
- medium2x
- original
- small2x
- thumb2x
- tests
- Feature
- Base
- Lib
- Traits
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
96 files changed
+5377
-2481
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
38 | 62 | | |
39 | 63 | | |
40 | 64 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
25 | 13 | | |
26 | 14 | | |
27 | 15 | | |
| |||
36 | 24 | | |
37 | 25 | | |
38 | 26 | | |
39 | | - | |
40 | 27 | | |
41 | 28 | | |
42 | 29 | | |
| |||
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
6 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
7 | 13 | | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
8 | 18 | | |
9 | 19 | | |
10 | 20 | | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
11 | 44 | | |
12 | 45 | | |
13 | 46 | | |
14 | 47 | | |
15 | 48 | | |
16 | 49 | | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
17 | 55 | | |
18 | 56 | | |
19 | | - | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
20 | 60 | | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
25 | 93 | | |
26 | 94 | | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
27 | 105 | | |
28 | 106 | | |
29 | 107 | | |
| |||
37 | 115 | | |
38 | 116 | | |
39 | 117 | | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
40 | 239 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| |||
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | 5 | | |
7 | 6 | | |
8 | 7 | | |
9 | | - | |
10 | 8 | | |
11 | 9 | | |
12 | 10 | | |
| |||
21 | 19 | | |
22 | 20 | | |
23 | 21 | | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | 22 | | |
38 | 23 | | |
39 | 24 | | |
| |||
0 commit comments