crocodile2u / imgproxy-php Goto Github PK
View Code? Open in Web Editor NEWURL generator for darthsim/imgproxy
URL generator for darthsim/imgproxy
It looks like this package is not working on Imgproxy v3.
The URL on v3 is changing to something like this http://imgproxy.example.com/AfrOrF3gWeDA6VOlDG4TzxMv39O7MXnF4CXpKUwGqRM/preset:sharp/resize:fill:300:400:0/gravity:sm/plain/http://example.com/images/curiosity.jpg@png
while the old one is using slash for separating the options and already deprecated
http://localhost:7001/owS6Nr5-M_ksJH0LGeNemRLmHEsexVrqdWLk0gZLhEU/fill/800/553/sm/0/bG9jYWw6Ly8vaW1hZ2VzL3Byb2R1Y3RzL2RldGFpbC9MTlpLOUZuSWprZzFiQnZNSWNneUJtNXdoenhiUzMzNUFHSExVdkNoLnBuZw.png
Imgproxy will be removing the older URL params in favor of the newer "advanced" params.
Do you have any plans to support them?
https://docs.imgproxy.net/generating_the_url_advanced?id=example
Cheers!
Please provide fill-down resizing type.
https://docs.imgproxy.net/generating_the_url?id=resizing-type
Width and Height, command line options, are actually strings, although the Url class constructor requires integers.
Code bellow resolves the problem.
committing all file.
file -> src/CLI.php
CLI.php.txt
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.