Commit Graph

68 Commits

Author SHA1 Message Date
Claudio Sanches d48f1d4e2e Fixed package tag usage 2020-08-05 13:36:24 -03:00
Mike Jolley cbb92ef86c combine check 2019-03-18 10:59:43 +00:00
Silicon Forks 19a7bb82a0 Fix image regeneration check when image is not cropped
Resolves #21800.
2019-03-16 12:39:40 -03:00
Mike Jolley 51dbbac32d Update from master 2019-03-01 10:19:40 +00:00
Mike Jolley efb8704f05 If both dimensions are smaller, do not scale 2019-03-01 10:15:01 +00:00
yaroslawww 5f9225a1cb
Update class-wc-regenerate-images.php
Fix coding styles and naming error
2019-02-28 16:48:18 +02:00
yaroslawww bb8bf5f749
Update class-wc-regenerate-images.php
Sometimes imagedata has not $imagedata['sizes']['full'] params. In my case, due to the fact that I am loading the SVG picture.
Therefore, an error is visible *Undefined index: height in class-wc-regenerate-images.php on line 222*
Therefore, a check for the emptiness of these parameters is added.
2019-02-27 13:53:32 +02:00
Mike Jolley 0c2bc16bc1 Improved ratio and size matching code to prevent false positives 2019-02-22 12:10:54 +00:00
Mike Jolley d31fbb5bf3 Helper to get full size dimensions 2019-02-22 12:10:28 +00:00
Mike Jolley 4a383fa832 When resizing, avoid extra checks via our filter 2019-02-22 12:10:16 +00:00
Mike Jolley 21f98555dc Image downsize without filters 2019-02-22 12:09:59 +00:00
Mike Jolley e982e4027a unused variables 2019-02-21 17:37:16 +00:00
Mike Jolley 78ebe9496f Move caching 2019-02-21 17:35:41 +00:00
Mike Jolley a4ac312854 Correct docblock 2019-02-21 17:15:37 +00:00
Mike Jolley d7c2aaaadb Avoid get post 2019-02-21 17:15:24 +00:00
Mike Jolley 54c1ef8615 Avoid trying to resize small images 2019-02-21 16:58:40 +00:00
Mike Jolley 287d65ab65 Add caching to get image size 2019-02-21 16:58:28 +00:00
MD Sultan Nasir Uddin 527c7bc03a fix wrong variable checking 2019-02-02 15:54:33 +06:00
Shubham Mathur 1f21fd86c5 Fix for images with no metadata (#22562)
* Fix for images with no metadata

Fix for error when images have no metadata or their metadata is removed.

* Fix for images with no metadata

Fix for error when images have no metadata or their metadata is removed.

* Fix for images with no metadata

Fix for error when images have no metadata or their metadata is removed.

* Fix for images with no metadata

Fix for error when images have no metadata or their metadata is removed.
2019-01-31 13:01:59 +00:00
Shabnam 722c21066f changed version to 3.5.0 and adjusted the curly brace 2018-08-08 13:27:54 +06:00
Shabnam 4affbff47e removed unnecessary php tag [point 2] and removed a return false statement[point 3] 2018-08-04 19:51:25 +06:00
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