Destroys the whole asset shape

Open
#2 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
dart

Research direction

Start with the failing command and the stack trace locations in src/image_decode.dart and src/image.dart, especially findStretch. Inspect how the supplied .9.png is decoded and run the existing CLI reproduction; done means the input is handled consistently and the expected JSON file is produced or the validation explains the rejection.

Written by the indexing model from the issue text.

Description

So I got the png from your give project
textbox_side
nad went to this website https://www.9patch.online/editor and created the 9 patch image of this png and this website gives me this 9 slice image
textbox_side 9
and now when i run
dart run nine_patcher path/to/the/.9.png/image and then it returns this error

Unhandled exception: InvalidNinePatchException: 'No stretch area found along the top.' #0 findStretch (package:nine_patcher/src/image_decode.dart:115:5) #1 decodeNinePatchMetadata (package:nine_patcher/src/image_decode.dart:24:19) #2 new NinePatchImage.fromImage (package:nine_patcher/src/image.dart:18:22) #3 main (file:///Users/ahmadizaz/.pub-cache/hosted/pub.dev/nine_patcher-1.0.1/bin/nine_patcher.dart:65:29) <asynchronous suspension>

Now Okay the error is self explanatory but whatever image I add, it always just gives the error. was not able to create .json file for once.

Dominant language
Dart
Stars
2
Forks
0
Avg merge
39m
Merged PRs (30d)
1

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Similar issues

More Dart issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.