Skip to content

Resizing failed - no error given #1

Description

@bartvanraaij

Hi Thomas,

the tool doesn't seem to work. I try to run it with:
quick-resize --image="resources/smeba-app-icon-1024.png" --config="assets.config.json"
Output:

░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 0% | ETA: 0s | 0/4
Resizing failed at size 120x120 to destination 'images'

Content of the assets.config.json file:

{
  "sizes": [120, 152, 167, 180],
  "density": 72
}

Perhaps it might be useful to catch the error and output the error message at

quick-resize/index.js

Lines 150 to 153 in 67e16bb

.catch(() => {
progress.stop();
console.log(`Resizing failed at size ${lastFile.width}x${lastFile.height} to destination '${lastFile.destination}'`.red);
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions