1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-16 19:54:24 +02:00

1598 Commits

Author SHA1 Message Date
Ryan Cramer
bac9736e49 Update WireHttp::sendFile() to support a 'data' option that lets you provide a string of content to send as a download, rather than pulling from existing file. 2019-05-17 13:21:12 -04:00
horst-n
6e580f71e1 changed the return of webpUrl()
to return the calculated URL, even if there is no webp copy available!
2019-05-04 18:42:11 +02:00
horst-n
88d4b11db4 added object as output format to the getDebugInfo
I figured out that this is useful to have for (automated) testing and debugging too. It is much easier to get a value for conditional coding via an object:
```
$dbgInfo = $image->getDebugInfo($options, 'object');
if($dbgInfo->engines->selectedEngine == ....
```
2019-05-04 11:21:58 +02:00
Ryan Cramer
f83b4ae259 Bump version to 3.0.131 2019-05-03 15:11:41 -04:00
Ryan Cramer
2880ff6d57 Various minor updates, mostly phpdoc related 2019-05-03 11:59:18 -04:00
Ryan Cramer
3a094f6447 Adjustment to WireTextTools::markupToText() method to prevent it from adding redundant newlines 2019-05-03 11:54:54 -04:00
Ryan Cramer
12f6253af6 Update WireHttp::sendFile() method to support partial downloads or ranges via HTTP_RANGE headers. Browsers use this particularly with media files (audio/video), especially Safari and iOS devices. But this also enables partial and pause/resume of any kind of downloads. 2019-05-03 11:40:29 -04:00
horst-n
d361c6c11e added a webp support check for engines
see: https://processwire.com/talk/topic/14236-webp-support/page/3/?tab=comments#comment-185020
2019-05-03 13:54:04 +02:00
horst-n
fa917b30e0 fixed a bug with internal checking
if a webp copy exists or not. Using $this->hasWebp() within the resize method doesn't work. Changed to test for file_exists of the temporary webp copy.
2019-05-02 10:37:08 +02:00
horst-n
b46bdfea94 updated font-family with more monospace fonts 2019-04-29 19:29:53 +02:00
horst-n
e8e2594d3e force new creation for condition
where the regular variation exists and should not be recreated, but where a webp copy, that do not exist, is requested too.
2019-04-29 17:30:06 +02:00
horst-n
540ae4f2d9 rearanged and grouped the output of getDebugInfo 2019-04-29 16:51:57 +02:00
Ryan Cramer
f2dbdb118e Fix issue processwire/processwire-issues#865 and processwire/processwire-issues#864 2019-04-29 10:07:49 -04:00
horst-n
53c414aa60 reworked the getDebugInfo method,
trying to make the code more readable.
But the main goal for me is, that the output is best readable! :)
2019-04-27 23:15:44 +02:00
horst-n
e6f4fbcb40 minor changes and cleaning phpdoc 2019-04-27 23:12:37 +02:00
horst-n
ba6803f425 refactored getDebugInfo() method 2019-04-27 13:21:07 +02:00
horst-n
32afdbdf52 cleaning up a bit 2019-04-27 11:55:50 +02:00
horst-n
1b96368aa2 cleaning and beautyfying 2019-04-27 10:46:39 +02:00
horst-n
a4431829d9 added method and property webpFilename 2019-04-27 10:37:10 +02:00
horst-n
ec2c2cf4e0 cleaning minor things and whitespaces
and added "Options Hierarchy" to the getDebugInfo method
2019-04-27 10:27:07 +02:00
horst-n
8da54040d4 added a verbose debug method
that can be called manually on every imagevariation and with individual options array.
2019-04-27 00:36:42 +02:00
horst-n
ebe7a5d80f added a verbose debug info method 2019-04-27 00:30:58 +02:00
horst-n
9f01172a4b added 2 aliases
beginning with webp, as we also use two new options beginning with webp. Maybe this is better to avoid confusion.
webpAdd, webpQuality, webpUrl, webpSrc
2019-04-26 18:32:23 +02:00
horst-n
023a672e26 Update Pageimage.php 2019-04-25 11:01:57 +02:00
horst-n
232f66dedf minor changes 2019-04-25 11:01:31 +02:00
horst-n
4e534e0315 add property and method for webpAdd 2019-04-25 08:59:58 +02:00
horst-n
b531275a6e make more robust filename creation
and remove debug code
2019-04-25 00:41:14 +02:00
horst-n
f3f4e427b0 changed to more robust filename creation 2019-04-25 00:21:09 +02:00
horst-n
a5a101a456 documentation for webp properties 2019-04-24 23:40:16 +02:00
horst-n
7f132638d0 added properties for webp support
with the property $image->hasWebp we can detect, for example in a template file, if an image variation has a dependant webp file, so we can render conditional markup with srcset or picture elements.
And urlWebp and srcWebp for returning the URL.
2019-04-24 23:23:05 +02:00
horst-n
63018ab1cd add support for webp
added option "webpAdd" and "webpQuality" that allows to create a webp file as sidecar file when creating a JPEG, GIF or PNG file.
2019-04-24 21:32:05 +02:00
horst-n
bbe13583c5 add webp support to GD 2019-04-24 21:29:09 +02:00
horst-n
c1814c8e6b add option webpQuality 2019-04-24 21:28:33 +02:00
Ryan Cramer
2a63a44485 Minor adjustments 2019-04-19 09:19:03 -04:00
Ryan Cramer
761c7640c7 Add new $config->sessionForceIP property that lets you override the return value of $session->getIP() 2019-04-19 09:16:58 -04:00
Ryan Cramer
72324fdbb1 Fix issue processwire/processwire-issues#854 2019-04-16 10:03:42 -04:00
Ryan Cramer
21164eaef5 Fix issue processwire/processwire-issues#852 2019-04-16 06:17:23 -04:00
Ryan Cramer
f0c79f38cf Additional update for processwire/processwire-issues#849 2019-04-16 06:08:52 -04:00
Ryan Cramer
3b8d92a975 Fix issue processwire/processwire-issues#849 2019-04-16 05:59:55 -04:00
Ryan Cramer
144ce409b1 Bump version to 3.0.130 2019-04-12 21:44:44 -04:00
Ryan Cramer
932ad94dc4 Add WireDatabaseBackup::dropAllTables() method for feature request processwire/processwire-requests#296 2019-04-12 10:46:51 -04:00
Ryan Cramer
099acacc61 Improvements to the __debugInfo() return values for some classes as well as those requested in processwire/processwire-issues#575 2019-04-12 10:28:23 -04:00
Ryan Cramer
da309f335b Fix issue processwire/processwire-issues#744 2019-04-11 12:23:01 -04:00
Ryan Cramer
12aede03fe Add new $cache->renderFile() method that works like $files->render() but caches the output according to WireCache rules. Also updated $files->render() to support a 'cache' option, which provides the same result. 2019-04-11 11:48:34 -04:00
Ryan Cramer
dcf226995c Improvements and minor refactoring in WireCache.php ($cache API var) 2019-04-10 11:55:17 -04:00
Ryan Cramer
d03ed24c75 Various phpdoc improvements 2019-04-10 05:58:23 -04:00
Ryan Cramer
612d886dd8 Typo fixes per processwire/processwire-issues#797 2019-04-09 06:16:13 -04:00
Ryan Cramer
5af01e44d0 Fix issue processwire/processwire-issues#844 2019-04-08 06:22:13 -04:00
Ryan Cramer
357ce2d642 Bump version to 3.0.129 2019-04-05 15:08:36 -04:00
Ryan Cramer
e2176d9446 Add $datetime->elapsedTimeStr() method to accompany existing relativeTimeStr() method. This one enables you to show difference in two dates/times rather than just relative to current date/time. 2019-04-05 15:05:05 -04:00