Skip to content

Added Image scaling and width feature. #9

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

Added Image scaling and width feature. #9

wants to merge 6 commits into from

Conversation

thenderson21
Copy link

I really like this extension as Dealing with images is a major pain.

I have added the ability to use non-square images, by scaling the SVG on the parameter given (width, height, and/or scaling). If the height or width is provided the other is scaled to fit. You can also preset a scaling.

Ex:
{ type: 'TabIconiOS', width: 52, scaling: 2, color: '#f80c12', path: 'iOS/Resources/{0}@2x' }
Will scale the image to two times (width = 102).

Ex:
{ type: 'TabIconiOS', scaling: 2, color: '#f80c12', path: 'iOS/Resources/{0}@2x' }
Will also scale the image to two times, but width and height are determined by the SVG. The height and width tend to be funky. I use Affinity Designer for SVG, and the size I save it as isn't always the size that it reads in. The ration of width/height are correct. I recommend setting a width and or height when scaling.

Todd Henderson and others added 6 commits July 24, 2015 11:39
* Svg.dll:
* Svg.XML:
* Svg.pdb:
* packages.config:
* ImageProcessor.cs:
* Manifest.addin.xml:
* Svg.1.7.0.nupkg:
* OutputSpecifier.cs:
* ImageMultiplier.csproj:
* AddinInfo.cs:
* ImageMultiplierSyntax.xml:
* AssemblyInfo.cs:
* install.ps1:
* Mono.Cecil.dll:
* Mono.Cecil.dll:
* Mono.Cecil.dll:
* Mono.Cecil.dll:
* Mono.Cecil.0.9.5.4.nupkg:
* Mono.Cecil.Pdb.dll:
* Mono.Cecil.Mdb.dll:
* Mono.Cecil.Pdb.dll:
* Mono.Cecil.Mdb.dll:
* Mono.Cecil.Mdb.dll:
* Mono.Cecil.Pdb.dll:
* Mono.Cecil.Rocks.dll:
* Mono.Cecil.Rocks.dll:
* Mono.Cecil.Rocks.dll:
* Newtonsoft.Json.6.0.8.nupkg:
* Newtonsoft.Json.dll:
* Newtonsoft.Json.xml:
* Newtonsoft.Json.dll:
* Newtonsoft.Json.xml:
* Newtonsoft.Json.xml:
* Newtonsoft.Json.dll:
* Newtonsoft.Json.xml:
* Newtonsoft.Json.dll:
* Newtonsoft.Json.xml:
* Newtonsoft.Json.dll:
* ICSharpCode.NRefactory.5.5.0.nupkg:
* ICSharpCode.NRefactory.xml:
* ICSharpCode.NRefactory.dll:
* ICSharpCode.NRefactory.Xml.xml:
* ICSharpCode.NRefactory.Xml.dll:
* ICSharpCode.NRefactory.Cecil.dll:
* ICSharpCode.NRefactory.Cecil.xml:
* ICSharpCode.NRefactory.CSharp.xml:
* ICSharpCode.NRefactory.CSharp.dll:
* Newtonsoft.Json.xml:
* Newtonsoft.Json.dll:
* Newtonsoft.Json.dll:
* Newtonsoft.Json.xml: Added scaling height option.

* README.md: Updated Readme to reflect changes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant