Comments (6)
Interesting. Just so I'm 100% sure we're on the same page, could you send through example input and output URLs?
from imgix-swift.
let imageUrl = imgixClient.reconstruct(withURL: NSURL(string: "http://images.domain.com/default.png")!, params: ["auto":"format,compress"])
// imageUrl = "http://images.domain.com/default.png?auto=format%2Ccompress&ixlib=swift-0.1.2"
from imgix-swift.
What would happen to the NSURL's query string in this case, if present? Also, would duplicate values be overridden?
from imgix-swift.
The original query string should be joined with new parameters.
I'd say that since the developer is supplying the imgix parameter dictionary, its fine to overwrite them from the original query string.
You could also just provide a flag for that issue to make it more flexible.
from imgix-swift.
Hey @jndonald3, if possible, would you mind giving #8 a shot and letting me know if that works nicely for you? Thanks!
from imgix-swift.
Alrighty, released as 0.3.0!
from imgix-swift.
Related Issues (8)
- invalid signatures for comma-separated values without base64 encoding HOT 1
- iOS 9.0 HOT 1
- sigabort crash HOT 3
- Build issue with pod HOT 8
- Arabic encoding not working. HOT 6
- feat: allow `buildUrl` to use pre-encoded URLs HOT 2
- Allow the imgix swift library to have initializer that accepts no `host` parameter
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from imgix-swift.