Commit Graph

7530 Commits

Author SHA1 Message Date
Matias Griese
def437e42b Improved deleting flex objects 2022-06-10 14:15:59 +03:00
Matias Griese
e8bc5fac71 Added methods to copy, move and delete all media 2022-06-10 13:21:48 +03:00
Matias Griese
48400920c4 Merge branch 'develop' of github.com:getgrav/grav into feature/media 2022-06-10 11:51:52 +03:00
Matias Griese
f464492582 Composer update 2022-06-10 11:51:28 +03:00
Matias Griese
54f9e73f6f Fixed fatal error with videos 2022-06-08 21:35:56 +03:00
Matias Griese
e3f5b7ea04 Disabled media caching for now 2022-06-08 19:11:30 +03:00
Matias Griese
8c2c8d3f15 Fixed removing file from local media 2022-06-08 19:10:26 +03:00
Matias Griese
34915d96a3 Image class: Do not allow images to be created without a size 2022-06-08 18:56:42 +03:00
Matias Griese
6fd5bd0b13 Updated media to use fixed key for objects 2022-06-08 12:37:07 +03:00
Matias Griese
81aa4601e4 Changelog update 2022-06-06 11:37:10 +03:00
Yankl-Peretz Blum
6b57f29511 Add Eastern Yiddish
'yi' actually refers to a macrolanguage. The only language in current use in this category is Eastern Yiddish, with language code 'ydd'
2022-06-06 11:14:17 +03:00
yankl
74296a80d0 Add back Yiddish to Language Codes 2022-06-06 11:14:17 +03:00
Matias Griese
cb9fcbce74 Merge branch 'develop' of github.com:getgrav/grav into feature/media
 Conflicts:
	CHANGELOG.md
	system/src/Grav/Common/Page/Medium/ImageMedium.php
2022-05-20 16:44:16 +03:00
Matias Griese
e6320fa327 Changelog update (typo) 2022-05-20 16:40:54 +03:00
Matias Griese
3bf979bd0f Changelog update 2022-05-20 15:57:03 +03:00
Matias Griese
6fa96ca554 Regression: Fixed saving page with a new language causing cache corruption [#2282] 2022-05-20 15:55:38 +03:00
Matias Griese
eda078361c Media cache: allow also png <=> webp 2022-05-18 21:57:56 +03:00
Matias Griese
9445ad887c Media: Fixed broken meta and thumb file support 2022-05-18 20:34:09 +03:00
Matias Griese
6d74739d17 Fixed support for resized png, gif 2022-05-18 20:07:16 +03:00
Matias Griese
d8d628aa1e Added webp support for cached images 2022-05-18 15:25:33 +03:00
Matias Griese
a4d5cf28b1 Fixed too strict interface 2022-05-18 13:44:19 +03:00
Matias Griese
c5efe25228 scaledFromMedium() can now be shared 2022-05-18 13:27:16 +03:00
Matias Griese
ad469209b6 Media: Minor fixes, optimizations and cleanup 2022-05-18 13:23:47 +03:00
Matias Griese
a29cafe801 Optimized MediumFactory::scaledFromMedium() method 2022-05-18 13:22:43 +03:00
Matias Griese
6afc59e412 Improved retina image support 2022-05-18 13:21:24 +03:00
Matias Griese
a7a9b5d132 Fixed a potential fatal error when using watermark in images 2022-05-13 17:04:56 +03:00
Matias Griese
cb69b8a275 Fixed image watermarks 2022-05-13 15:42:30 +03:00
Matias Griese
66ec27d8fe Fixed image merge operation 2022-05-13 15:40:19 +03:00
Matias Griese
bc4cf15f47 Fixed auto width and height in markdown 2022-05-13 15:37:21 +03:00
Matias Griese
83a0515d95 Fixed image debug to work with cached retina variants 2022-05-13 15:35:38 +03:00
Matias Griese
28e2c9bbef Cleanup unused method ImageMediaTrait::generateCacheImage() 2022-05-12 20:38:25 +03:00
Matias Griese
ea842aef0a Minor media bug fixes 2022-05-12 20:37:31 +03:00
Matias Griese
f8c5684dae Return proper placeholder image when cached image doesn't exist 2022-05-12 15:52:03 +03:00
Matias Griese
05f1840218 Added retina support for cached images just by requesting @2x or @3x: /images/04/b6/6f9...109/image@2x.jpg 2022-05-12 15:03:34 +03:00
Matias Griese
f58e8dbb67 Media: Initialize typed variables 2022-05-12 13:02:55 +03:00
Matias Griese
1c2a1c1126 Media class improvements (typed properties, phpstan fixes) 2022-05-12 12:40:31 +03:00
Matias Griese
8ce7b0ba44 Added retina support for Image\Adapter operations 2022-05-11 13:01:23 +03:00
Matias Griese
fb25f33281 Fixed calls to undefined Media methods, they will now return null in order to fix twig templates with undefined variables 2022-05-11 11:23:46 +03:00
Matias Griese
ec703ef7e2 AbstractMedia::prepareFileInfo() should also take a look into meta 2022-05-10 22:34:17 +03:00
Matias Griese
d4bb67c802 Improve media index 2022-05-10 22:22:54 +03:00
Matias Griese
7f87c043dc Added indexing support for hashed filenames 2022-05-10 21:43:37 +03:00
Matias Griese
f72944bf19 Minor fixes 2022-05-10 12:07:58 +03:00
Matias Griese
1ddde55543 Fixed retina scale 2022-05-09 14:45:43 +03:00
Matias Griese
8dc304935d Fixed image media auto sizes 2022-05-09 14:36:53 +03:00
Matias Griese
9745eaeeb8 Fixed unit test for image resizing where behavior has changed 2022-05-09 12:03:00 +03:00
Matias Griese
298dea3adc Revert part of fix for remote URLs in markdown using subfolder path, see commit ae346564 2022-05-09 11:45:24 +03:00
Matias Griese
0033254a1b Clone medium when it is being fetched from media 2022-05-09 11:29:27 +03:00
Matias Griese
4c40e57463 Cached images do not need timestamps 2022-05-09 10:54:13 +03:00
Matias Griese
9c4c5ddfd9 Fixed media adding timestamps when they should not 2022-05-09 10:53:51 +03:00
Matias Griese
d7f783ab9e Updated unit tests to match the new cache image format 2022-05-06 17:48:29 +03:00