IanMercer / imagemultiplier

Image Multiplier is the easiest way to create all of the PNG files you need for a complex Xamarin Solution including all of the sizes needed by Android and iOS. It converts SVG files to PNG files according to a set of specifications. You can install it from the Gallery in the Add-in Manager in Xamarin Studio.
19 stars 6 forks source link

problem with png image generate? #6

Open muhammetsahin opened 9 years ago

muhammetsahin commented 9 years ago

Hi,

Thank for cool add-in. it is very useful. But i have a trouble with generation png image. I added messenger.svg to my image assets project and built, it worked than added image to my ios resources. After that, I added second svg file which name is notification.svg than built again but didnt work. it was not generate second image (notification.svg)

Am i wrong something or is it bug?

Thanks.

IanMercer commented 9 years ago

Likely an issue with the svg file itself. Can you post svg file and the multiplier file. Have you tried other svgs?

misenesi commented 9 years ago

Hey guys,

im using Xamarin 5.9.5 and installed ImageMultiplier. I have created PCL project and added it to my project, added icon.svg and default.multiplier files but when i build, nothing happens, no file is being output anywhere.

What am I missing?

This is my multiplier file:

{ type: 'AndroidAppIcon', width: 96, path: 'Droid/Resources/drawable/{0}' } { type: 'AndroidAppIcon', width: 72, path: 'Droid/Resources/drawable-hdpi/{0}' } { type: 'AndroidAppIcon', width: 96, path: 'Droid/Resources/drawable-xhdpi/{0}' } { type: 'AndroidAppIcon', width: 144, path: 'Droid/Resources/drawable-xxhdpi/{0}' }

{ type: 'iosAppIcon', width: 80, path: 'iOS/Resources/{0}40@2x' } { type: 'iosAppIcon', width: 120, path: 'iOS/Resources/{0}60@2x' } { type: 'iosAppIcon', width: 180, path: 'iOS/Resources/{0}60@3x' }

{ process: 'icon.svg', as: ['AndroidAppIcon', 'iosAppIcon'] }

Korayem commented 8 years ago

I am facing the same issue in XS 5.10.2. This is my SVG...services.svg located in Icons folder

Multiplier file

{ type: 'androidIcon', width: 72, path: 'Droid/Resources/drawable/{0}' }
{ type: 'androidIcon', width: 48, path: 'Droid/Resources/drawable-hdpi/{0}' }
{ type: 'androidIcon', width: 72, path: 'Droid/Resources/drawable-xhdpi/{0}' }
{ type: 'androidIcon', width: 96, path: 'Droid/Resources/drawable-xxhdpi/{0}' }

{ type: 'iosIcon', width: 30, path: 'iOS/Resources/{0}' } 
{ type: 'iosIcon', width: 60, path: 'iOS/Resources/{0}@2x' }
{ type: 'iosIcon', width: 90, path: 'iOS/Resources/{0}@3x' }

{ process: 'Icons/*.svg', as: ['androidIcon', 'iosIcon'] }