imgix / imgix-csharp Goto Github PK
View Code? Open in Web Editor NEWA C# client library for generating image URLs with imgix
Home Page: https://www.imgix.com
License: MIT License
A C# client library for generating image URLs with imgix
Home Page: https://www.imgix.com
License: MIT License
Is there any chance of the nuget getting updated so the base64 variables work out of the box?
Hey @raynjamin! I'm Paul, Developer Relations at imgix. I'm going to be making some updates to this library to support some of our new features, and was wondering if you'd rather I submit pull requests, or if you'd be okay with giving me direct repo access. We'd also be happy to pull this over to the imgix GitHub organization and handle it all going forward, if you'd prefer. Any of those options work for me, just let me know how you want to move forward! ๐
Can I reference this library with asp.net Core?
Related to https://github.com/imgix/js-core#variable-qualities
Add a variable_qualities
option to the https://github.com/imgix/imgix-csharp#fixed-width-images function to allow users to override the mapping of the quality parameter (q
) to each device pixel ratio (dpr
). This will allow users to have more granular control over the fixed-size srcset values generated.
Related to https://github.com/imgix/js-core#fixed-image-rendering
Add a devicePixelRatios
option to the https://github.com/imgix/imgix-csharp#fixed-width-images function to allow users to customize the target device pixel ratio(s) (dpr
) when generating a fixed image. This will allow users to have more granular control over the fixed-size srcset values generated.
Hi,
When I try and install via nuget in VS2017 Community I get an error about Cryptography dependency. Am I missing something?
Attempting to gather dependency information for package 'Imgix-CSharp.1.0.1' with respect to project 'cightedfrontendwebforms', targeting '.NETFramework,Version=v4.6.1'
Gathering dependency information took 8.36 sec
Attempting to resolve dependencies for package 'Imgix-CSharp.1.0.1' with DependencyBehavior 'Lowest'
Install-Package : Unable to resolve dependency 'Cryptography'. Source(s) used: 'nuget.org', 'Microsoft Visual Studio Offline Packages'.
At line:1 char:1
+ Install-Package Imgix-CSharp
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Install-Package], Exception
+ FullyQualifiedErrorId : NuGetCmdletUnhandledException,NuGet.PackageManagement.PowerShellCmdlets.InstallPackageCommand
Thanks
Dean
I appear to be running in to a problem, where I trying to use a proxy with a signed key.
If I create a URL via the tool in the web portal it works fine, if I do it via the api it gives an error about the signed key being wrong.
The library works fine for me if have a web folder setup, but I have a scenario where I needed to use the proxy, does anyone have any ideas what I am doing wrong? - I can't see any tests in the library for testing the proxy combination with a signed key.
My Test Code:
Dim l As New List(Of String)
l.Add("DOMAIN")
Dim urlBuilder = New UrlBuilder(l.ToArray, True)
urlBuilder.SignKey = "KEY"
Console.WriteLine(urlBuilder.BuildUrl("URL"))
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.