AlexDisler / cordova-icon

Automatic icon resizing for Cordova
MIT License
689 stars 292 forks source link

Cordova-icon doesnt generate any icon #119

Open sandlacharme opened 6 years ago

sandlacharme commented 6 years ago

Hello dear developpers, I just install cordova-icon and imagemagick. my cordova platform is 8.0.0. I put in the main Folder an Icon.png in 1024 px. When I run cordova-icon , no icons seems to be generated , nothing appears : here is my log : Checking Project & Icon ✓ platforms found: ios, android ✓ icon.png exists ✓ config.xml exists

Generating Icons for ios

Any Idea ? Thanks a lot

sandlacharme commented 6 years ago

solved.

bayssmekanique commented 6 years ago

I'm at the same point. What has the final solution?

sandlacharme commented 6 years ago

Not really solved.. I closed the ticket toi quickly..no solution yet.. I Will têt another plugin..

sandlacharme commented 6 years ago

Will try another plugin sorry

Bessonov commented 6 years ago

did you install ImageMagick?

sandlacharme commented 6 years ago

Yes and imagemagik works fine..i use it To convert images

bayssmekanique commented 6 years ago

For me, the issue seems to be related to the fact that I'm on Windows.

I installed ImageMagik with the legacy tools and when running cordova-icon it was returning almost instantly without actually doing anything, so I made the changes from PR #97 and was able to get ✗ Error: Command failed: Invalid Parameter - -set to output.

stephen-gobin commented 6 years ago

@bayssmekanique Looking at another issue #90 and I think they solve it, atleast I was able to adapt their comments to fix the Invalid Parameter - -set.

What I did was find the global install of cordova-icon ( for me it was "C:\Users\Stephen\AppData\Roaming\npm\node_modules\cordova-icon\index.js") then add this line

ig.convert.path = "C:/Program Files/ImageMagick-7.0.7-Q16/convert.exe";

on line 10 of the package file index.js between the require statements and the settings.

Of course you will need to update paths for your computer.

I hope that helps you too.

aaronamm commented 6 years ago

Thank you so much, @stephen-gobin you save my day.

This is what I solved.

dzenkovich commented 6 years ago

Make sure you tick "install legacy utilities (e.g. convert)" at ImageMagick install wizard. That did fix it for me :)