runelaenen / sw6-media-optimizer Goto Github PK
View Code? Open in Web Editor NEWImage Optimizer for Shopware 6 ๐
License: MIT License
Image Optimizer for Shopware 6 ๐
License: MIT License
Hello @runelaenen
Thanks for the great plugin. It makes live a much easier.
I`m asking if it is possible to add a new switch on the command to set the max width of a image.
So for example if the switch --max-midth is set then all images are first resized and then processed through the optimizer.
https://github.com/Intervention/image
This library could be used to resize the image.
I will try to implement the feature and then set up a pull request.
Media Entities that are missing the file name or the file extension stop the command from execution.
Hi there,
I have SW 6.3.3.0 and installed your plugin via Zip upload (admin interface). When trying to use the command:
bin/console rl:media:optimize
it fails with the following exception:
In srcShopware_Production_KernelProdContainer.php line 16965:
Attempted to load class "OptimizerChainFactory" from namespace "Spatie\ImageOptimizer".
Did you forget a "use" statement for another namespace?
Any idea to fix this?
The optimizing should respect the used filesystem.
Currently, it assumes using local storage.
Hey,
I'm currently facing a small issue - should be easy to fix (MediaOptimizeCommand.php#L158)
$ bin/console rl:media:optimize
33/909 [=>--------------------------] 3%20:17:27 CRITICAL [console] Error thrown while running command "rl:media:optimize". Message: "A valid Filename must be provided." ["exception" => Shopware\Core\Content\Media\Exception\EmptyMediaFilenameException^ { โฆ},"command" => "rl:media:optimize","message" => "A valid Filename must be provided."]
In UrlGenerator.php line 136:
A valid Filename must be provided.
If you need any further information, just let me know. (Btw. nice plugin!)
Cheers.
[edit]
Added linenumber and filename where the error is initially triggered.
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.