Skip to content
This repository has been archived by the owner on Oct 19, 2020. It is now read-only.

Cordova-icon doesnt generate any icon #119

Open
sandlacharme opened this issue Mar 6, 2018 · 10 comments
Open

Cordova-icon doesnt generate any icon #119

sandlacharme opened this issue Mar 6, 2018 · 10 comments

Comments

@sandlacharme
Copy link

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
Copy link
Author

solved.

@nerdoza
Copy link

nerdoza commented Mar 9, 2018

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

@sandlacharme
Copy link
Author

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

@sandlacharme sandlacharme reopened this Mar 9, 2018
@sandlacharme
Copy link
Author

Will try another plugin sorry

@Bessonov
Copy link

did you install ImageMagick?

@sandlacharme
Copy link
Author

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

@nerdoza
Copy link

nerdoza commented Mar 12, 2018

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
Copy link

@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
Copy link

aaronamm commented Jul 21, 2018

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

This is what I solved.

  • install imagemagick.tool package with chocolatey choco install imagemagick.tool
  • convert.exe will be in C:/ProgramData/chocolatey/lib/imagemagick.tool/tools/convert.exe
  • update injdex.js of cordova-icon as @stephen-gobin mentioned to have the correct path to your convert.exe.

@dzenkovich
Copy link

dzenkovich commented Aug 30, 2018

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants