Open muhammetsahin opened 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?
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'] }
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'] }
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.