Destroys the whole asset shape

Aperta
#2 3 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
dart

Direzione di ricerca

Inizia dal comando che fallisce e dalle posizioni dello stack trace in src/image_decode.dart e src/image.dart, in particolare findStretch. Esamina come viene decodificato il file .9.png fornito ed esegui la riproduzione CLI esistente; il lavoro è completato quando l’input viene gestito in modo coerente e viene prodotto il file JSON previsto, oppure quando la validazione spiega il rifiuto.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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.

Lingua principale
Dart
Stelle
2
Fork
0
Merge medio
39m
PR unite (30g)
1

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Issue simili

Altre issue su Dart

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.