Commit Graph

5541 Commits

Author SHA1 Message Date
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
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
e1b4c8fadd Medium improvements 2022-05-06 17:18:57 +03:00
Matias Griese
79b3415ac6 Medium: Use strict types where possible 2022-05-06 14:04:07 +03:00
Matias Griese
52f2488281 Fixed media serialization 2022-05-06 13:40:10 +03:00
Matias Griese
4312df9eaf Updated Grav version and PHP minimum to 7.4.1 2022-05-06 12:52:05 +03:00
Matias Griese
8c11c31bef Added system.images.mutation_compat setting 2022-05-06 12:47:48 +03:00
Matias Griese
cb2c583454 Thumbnails need to be images, other minor fixes 2022-05-06 11:46:15 +03:00
Matias Griese
24394b68eb Mark medium methods pure/unpure 2022-05-06 11:45:08 +03:00
Matias Griese
914d0b0cfd Prepareations to make medium immutable 2022-05-05 19:20:54 +03:00
Matias Griese
9c90a62b6c Updated media class interfaces to PHP 7.4 standards 2022-05-05 19:17:01 +03:00
Matias Griese
f5d2b546dc Medium no longer extends Data 2022-05-05 12:05:19 +03:00
Matias Griese
a3bf4089f3 Merge branch 'develop' into feature/media 2022-04-28 12:29:32 +03:00
Andy Miller
c2a8145f2c prepare for release 2022-04-25 14:50:34 -06:00
Matias Griese
4d94e2c740 Merge branch 'develop' of github.com:getgrav/grav into feature/media 2022-04-25 18:27:40 +03:00
Matias Griese
26e4768bc5 Fixed default collection ordering in pages admin 2022-04-25 18:27:21 +03:00
Matias Griese
a52b4cbd8e Fixed error when resizing image 2022-04-22 20:28:04 +03:00
Matias Griese
f8ef9c41c5 Postpone image processing to cache image requests 2022-04-21 20:26:21 +03:00
Matias Griese
34653a6b4c Media: Prevent fatal error if object doesn't exist (pt 3) 2022-04-21 13:44:24 +03:00
Matias Griese
85aa55fabf Media: Prevent fatal error if object doesn't exist (pt 2) 2022-04-20 21:44:12 +03:00
Matias Griese
34c9888ba9 Media: Prevent fatal error if object doesn't exist 2022-04-20 21:20:03 +03:00
Matias Griese
7b99d905ae Added getDebugger() method into AbstractMedia 2022-04-19 19:35:11 +03:00
Matias Griese
da7500cb0e Composer update 2022-04-19 11:04:05 +03:00
Matias Griese
513b51e59d Merge branch 'develop' of github.com:getgrav/grav into feature/media
 Conflicts:
	composer.lock
2022-04-19 10:57:06 +03:00
Matias Griese
4464f29169 Composer update 2022-04-19 10:56:41 +03:00
Matias Griese
bbf2f34ea1 Interface updates 2022-04-19 10:51:39 +03:00
Matias Griese
44eed37bc3 Continue filename vs realname separation in media 2022-04-14 17:06:44 +03:00
Matias Griese
52d2850519 Reworked media logic to separate image name from filename 2022-04-14 12:10:24 +03:00
Matias Griese
e1901d8385 Obey media ordering 2022-04-12 14:17:03 +03:00
Matias Griese
2921366907 Implemented media ordering by field 2022-04-12 13:16:28 +03:00
Matias Griese
5f3747ff94 Fixed {{ image.url }} 2022-04-08 21:11:48 +03:00
Matias Griese
bd3b2baaa4 Fixed remote URLs in markdown if using subfolder setup (also with inner twig) 2022-04-08 20:35:55 +03:00
Matias Griese
ae3465646c Fixed remote URLs in markdown if using subfolder setup 2022-04-08 20:13:29 +03:00
Matias Griese
f3e20dd4cd Fixed preview in admin 2022-04-08 18:58:17 +03:00
Matias Griese
f2bc892cb4 Bug fixes for media 2022-04-08 14:47:15 +03:00
Matias Griese
1b7531d111 Added debug messages for soft errors 2022-04-08 13:20:10 +03:00
Matias Griese
95437011e5 Fixed fatal error if the media file doesn't exist 2022-04-08 12:43:43 +03:00
Matias Griese
bbe4e38353 Fixed media index resetting 2022-04-07 20:24:11 +03:00