Mike Jolley
a743757d0d
On the fly image generation for frontend
2018-05-08 22:23:45 +01:00
Claudio Sanches
b44aece433
Fixed includes/class-wc-regenerate-images.php PHPCS violations
2018-03-21 00:14:07 -03:00
Mike Jolley
cc08eff0b0
Standards
2018-03-07 11:18:42 +00:00
Jon Brown
e6f2126b11
opps... not DRY
...
Photon check should probably should be abstracted, but this works for now
2018-03-05 11:08:40 -10:00
Jon Brown
87695bddb7
Checking class exists is insufficient allows for a fatal error when Jetpack class is defined without specific method
...
There are a half dozen stripped-down versions of JetPack's modules like JP Custom CSS, JP Widget visibility, etc... these all define a class called "Jetpack" but don't define all the methods.
2018-03-05 10:30:05 -10:00
Mike Jolley
d841cf3f27
Conditionally add messages in customiser
2018-02-14 17:25:52 +00:00
Mike Jolley
ebc8ff0737
Fallback to closest match if size changes.
2018-02-14 13:43:52 +00:00
Mike Jolley
2f0e88f7ba
Improved photon handling
2018-02-14 13:20:34 +00:00
Mike Jolley
66e65cf7bf
Disable image regen if photon is being used.
2018-02-14 11:38:18 +00:00
Mike Jolley
0672afdc9f
Log cancel event
2018-02-13 19:22:01 +00:00
Mike Jolley
67bef92657
static function
2018-02-13 17:57:45 +00:00
Mike Jolley
154898dec2
make customizer preview temporary
2018-02-13 14:33:45 +00:00
Mike Jolley
755f535f69
Return, to avoid multiple resizes
2018-02-13 13:58:27 +00:00
Mike Jolley
9f9e4027e9
Thumbnail mapping
2018-02-13 12:51:55 +00:00
Mike Jolley
e39b6950a8
Notice when regeneration is happening
2018-02-13 12:02:24 +00:00
Gerhard Potgieter
794272a732
Do not auto generate images on setting changes or theme switches. Introduce a regenerate button under tools. Only resize images on the fly when using the customizer to preview changes.
2018-02-13 09:55:50 +02:00
Mike Jolley
9d898bbf6e
Return the resized image after regen, or if regen is not needed
2018-02-09 14:06:00 +00:00
Gerhard Potgieter
2280cabb94
Change on-the-fly image regenration to use same process as backrgound resizing, ensures CDN images are updated and show.
2018-02-08 15:36:50 +02:00
Gerhard Potgieter
8ae28cfe63
Add extra checks before processing on-the-fly regenration images to catch remote files.
2018-02-07 14:52:23 +02:00
Mike Jolley
40098feb3c
Prevent regen if not cropping and height mismatches
2018-02-01 17:13:05 +00:00
Mike Jolley
db54911443
Merge pull request #18752 from woocommerce/refactor/background-processing
...
Introduced new WC_Background_Process abstract class
2018-02-01 16:18:56 +00:00
Claudio Sanches
6ce1bb36b0
Applied new kill_process() method into WC_Regenerate_Images
2018-02-01 12:03:28 -02:00
claudiulodro
67a8113f59
Move filter for image resize to allow preventing regeneration betterr
2018-01-31 13:10:56 -08:00
Mike Jolley
79dba98b3f
maybe_resize_image fix
2018-01-31 17:43:39 +00:00
Mike Jolley
626b8baebc
MAGICK_THREAD_LIMIT fix for timeouts
2018-01-26 12:17:41 +00:00
Mike Jolley
ebde2d64fb
phpcs
2018-01-25 17:03:54 +00:00
Mike Jolley
de4ff9742c
Revert debug code
2018-01-25 15:06:12 +00:00
Mike Jolley
e0f8ff8f39
Revert "Prevent timeouts with option + reduce number of thumbnails generated by script"
...
This reverts commit a4b6110990
.
2018-01-25 15:05:04 +00:00
Mike Jolley
a4b6110990
Prevent timeouts with option + reduce number of thumbnails generated by script
2018-01-25 15:04:55 +00:00
Mike Jolley
c7ccc93a69
Prevent timeouts with option + reduce number of thumbnails generated by script
2018-01-25 15:02:33 +00:00
Mike Jolley
371f504964
Helpers for theme support vars and error messages.
2018-01-08 18:48:57 +00:00
Mike Jolley
3bc102b72f
Only resize WC image sizes.
2017-12-12 17:24:52 +00:00
Caleb Burks
af4d7c6bcb
Change filter to action
2017-12-11 21:09:16 -06:00
Umesh Ghimire
e128f774c4
Revert isset check as it was previously
2017-11-29 14:13:47 +05:45
Shiva Poudel
d4b4b808ed
Fix - Check and process if woocommerce_thumbnail is size
2017-11-29 12:54:32 +05:45
Gerhard Potgieter
26c7cf15cd
Use single isset with multiple params instead of multiple isset's
2017-11-20 13:23:10 +02:00
Gerhard Potgieter
b7f76e1a1b
Make sure sizes array exist before checking for children
2017-11-20 07:50:35 +02:00
Gerhard Potgieter
a4532b1e0b
Make method private again and add new method that checks if new theme declares theme support with custom sizes before generating images.
2017-11-16 15:02:34 +02:00
Gerhard Potgieter
c9cd9b033b
Public method not private, self not $this.
2017-11-16 14:53:44 +02:00
Gerhard Potgieter
17e588d713
Add method to regenerate images when the theme is switched.
2017-11-16 14:37:33 +02:00
Gerhard Potgieter
3a738d9235
Move filters before calling the callback. Target specific option only when doing the check.
2017-11-16 14:15:30 +02:00
Gerhard Potgieter
14bc175241
Remove unused variable, make sure we have the wp image functions loaded before calling them.
2017-11-15 10:23:54 +02:00
Gerhard Potgieter
329f28f08b
Fix SQL query for job queue processing, fix issue where admin images were trying to go through the image resize function.
2017-11-15 10:18:10 +02:00
Gerhard Potgieter
67d2b8e9c5
Use static variable on static class
2017-11-15 10:03:59 +02:00
Gerhard Potgieter
c698b13f6c
Completed background image regeneration using a job and queue.
2017-11-15 09:23:36 +02:00
Gerhard Potgieter
5af93f68ad
Add basic background queue processing framework for image regeneration
2017-11-15 08:36:57 +02:00
Gerhard Potgieter
016cfabb75
On the fly image regeneration.
2017-11-14 14:39:28 +02:00