rdeutz / rebuildk2imagecache Goto Github PK
View Code? Open in Web Editor NEWrebuilds the image cache directory for the Joomla Component K2
rebuilds the image cache directory for the Joomla Component K2
Hello Robert,
i really thank you for making this script available, i used it on website i am actually redesigning, it works well.
although there is minor bug in Generic image name, there should be "Generic" instead of Only "G" on line 39 as below.
$sizes = array('Generic' => $sizeG,'L' => $sizeL,'M' => $sizeM,'S' => $sizeS,'XL' => $sizeXL,'XS' => $sizeXS);
great work and thanks again you saved my life...
just rebuilt some image; many of images did not rebuilt
no error , all successful
need php configuration ?
I use SSH to run this php code
The new location is:
$uploadclassfile = dirname(FILE). '/../../../media/k2/assets/vendors/verot/class.upload.php/src/class.upload.php';
Today i tried this script, the only thing I needed to rebuild were the Generic images...
So i set all sizes to 0, only Generic to 400.
I ended up with Generic images being copied from source files - but the images did not get resized to 400px width, but was left at 1200 like the source image...
Joomla 3.9.11 and K2 2.9.0
No problems with resizing when reuploading through K2
When I run the script the outputs has many warnings in it...
.PHP Warning: preg_match(): Compilation failed: invalid range in character class at offset 7 in /var/www/virtual/domain.vsrv123456.customer.vlinux.de/htdocs/administrator/components/com_k2/lib/class.upload.php on line 2910
PHP Warning: preg_match(): Compilation failed: invalid range in character class at offset 7 in /var/www/virtual/domain.vsrv123456.customer.vlinux.de/htdocs/administrator/components/com_k2/lib/class.upload.php on line 2950
PHP Warning: preg_match(): Compilation failed: invalid range in character class at offset 7 in /var/www/virtual/domain.vsrv123456.customer.vlinux.de/htdocs/administrator/components/com_k2/lib/class.upload.php on line 2977
PHP Warning: preg_match(): Compilation failed: invalid range in character class at offset 7 in /var/www/virtual/domain.vsrv123456.customer.vlinux.de/htdocs/administrator/components/com_k2/lib/class.upload.php on line 3004
PHP Warning: preg_match(): Compilation failed: invalid range in character class at offset 7 in /var/www/virtual/domain.vsrv123456.customer.vlinux.de/htdocs/administrator/components/com_k2/lib/class.upload.php on line 3022
PHP Warning: preg_match(): Compilation failed: invalid range in character class at offset 7 in /var/www/virtual/domain.vsrv123456.customer.vlinux.de/htdocs/administrator/components/com_k2/lib/class.upload.php on line 2910
PHP Warning: preg_match(): Compilation failed: invalid range in character class at offset 7 in /var/www/virtual/domain.vsrv123456.customer.vlinux.de/htdocs/administrator/components/com_k2/lib/class.upload.php on line 2950
PHP Warning: preg_match(): Compilation failed: invalid range in character class at offset 7 in /var/www/virtual/domain.vsrv123456.customer.vlinux.de/htdocs/administrator/components/com_k2/lib/class.upload.php on line 2977
PHP Warning: preg_match(): Compilation failed: invalid range in character class at offset 7 in /var/www/virtual/domain.vsrv123456.customer.vlinux.de/htdocs/administrator/components/com_k2/lib/class.upload.php on line 3004
PHP Warning: preg_match(): Compilation failed: invalid range in character class at offset 7 in /var/www/virtual/domain.vsrv123456.customer.vlinux.de/htdocs/administrator/components/com_k2/lib/class.upload.php on line 3022
PHP Warning: preg_match(): Compilation failed: invalid range in character class at offset 7 in /var/www/virtual/domain.vsrv123456.customer.vlinux.de/htdocs/administrator/components/com_k2/lib/class.upload.php on line 2910
PHP Warning: preg_match(): Compilation failed: invalid range in character class at offset 7 in /var/www/virtual/domain.vsrv123456.customer.vlinux.de/htdocs/administrator/components/com_k2/lib/class.upload.php on line 2950
PHP Warning: preg_match(): Compilation failed: invalid range in character class at offset 7 in /var/www/virtual/domain.vsrv123456.customer.vlinux.de/htdocs/administrator/components/com_k2/lib/class.upload.php on line 2977
PHP Warning: preg_match(): Compilation failed: invalid range in character class at offset 7 in /var/www/virtual/domain.vsrv123456.customer.vlinux.de/htdocs/administrator/components/com_k2/lib/class.upload.php on line 3004
PHP Warning: preg_match(): Compilation failed: invalid range in character class at offset 7 in /var/www/virtual/domain.vsrv123456.customer.vlinux.de/htdocs/administrator/components/com_k2/lib/class.upload.php on line 3022
PHP Warning: preg_match(): Compilation failed: invalid range in character class at offset 7 in /var/www/virtual/domain.vsrv123456.customer.vlinux.de/htdocs/administrator/components/com_k2/lib/class.upload.php on line 2910
PHP Warning: preg_match(): Compilation failed: invalid range in character class at offset 7 in /var/www/virtual/domain.vsrv123456.customer.vlinux.de/htdocs/administrator/components/com_k2/lib/class.upload.php on line 2950
PHP Warning: preg_match(): Compilation failed: invalid range in character class at offset 7 in /var/www/virtual/domain.vsrv123456.customer.vlinux.de/htdocs/administrator/components/com_k2/lib/class.upload.php on line 2977
PHP Warning: preg_match(): Compilation failed: invalid range in character class at offset 7 in /var/www/virtual/domain.vsrv123456.customer.vlinux.de/htdocs/administrator/components/com_k2/lib/class.upload.php on line 3004
PHP Warning: preg_match(): Compilation failed: invalid range in character class at offset 7 in /var/www/virtual/domain.vsrv123456.customer.vlinux.de/htdocs/administrator/components/com_k2/lib/class.upload.php on line 3022
PHP Warning: preg_match(): Compilation failed: invalid range in character class at offset 7 in /var/www/virtual/domain.vsrv123456.customer.vlinux.de/htdocs/administrator/components/com_k2/lib/class.upload.php on line 2910
PHP Warning: preg_match(): Compilation failed: invalid range in character class at offset 7 in /var/www/virtual/domain.vsrv123456.customer.vlinux.de/htdocs/administrator/components/com_k2/lib/class.upload.php on line 2950
PHP Warning: preg_match(): Compilation failed: invalid range in character class at offset 7 in /var/www/virtual/domain.vsrv123456.customer.vlinux.de/htdocs/administrator/components/com_k2/lib/class.upload.php on line 2977
PHP Warning: preg_match(): Compilation failed: invalid range in character class at offset 7 in /var/www/virtual/domain.vsrv123456.customer.vlinux.de/htdocs/administrator/components/com_k2/lib/class.upload.php on line 3004
PHP Warning: preg_match(): Compilation failed: invalid range in character class at offset 7 in /var/www/virtual/domain.vsrv123456.customer.vlinux.de/htdocs/administrator/components/com_k2/lib/class.upload.php on line 3022
PHP Warning: preg_match(): Compilation failed: invalid range in character class at offset 7 in /var/www/virtual/domain.vsrv123456.customer.vlinux.de/htdocs/administrator/components/com_k2/lib/class.upload.php on line 2910
PHP Warning: preg_match(): Compilation failed: invalid range in character class at offset 7 in /var/www/virtual/domain.vsrv123456.customer.vlinux.de/htdocs/administrator/components/com_k2/lib/class.upload.php on line 2950
PHP Warning: preg_match(): Compilation failed: invalid range in character class at offset 7 in /var/www/virtual/domain.vsrv123456.customer.vlinux.de/htdocs/administrator/components/com_k2/lib/class.upload.php on line 2977
PHP Warning: preg_match(): Compilation failed: invalid range in character class at offset 7 in /var/www/virtual/domain.vsrv123456.customer.vlinux.de/htdocs/administrator/components/com_k2/lib/class.upload.php on line 3004
PHP Warning: preg_match(): Compilation failed: invalid range in character class at offset 7 in /var/www/virtual/domain.vsrv123456.customer.vlinux.de/htdocs/administrator/components/com_k2/lib/class.upload.php on line 3022
File: 3abb66d58aa91d2b7b16f08ee38a95c0.jpg SUCCESSFUL
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.