Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. How do I use the 9-patch plugin script for Sketch to export the Imagine style assets?
Forum Updated to NodeBB v4.3 + New Features

How do I use the 9-patch plugin script for Sketch to export the Imagine style assets?

Scheduled Pinned Locked Moved Solved QML and Qt Quick
2 Posts 1 Posters 789 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    refaQtor
    wrote on last edited by
    #1

    I appreciated getting directed to the 9-patch-export.sketchplugin, which is in the Imagine style repo next to the imagine.sketch template, to make Sketch export 9-patch images. But, I don't understand how to use it in Sketch.
    I pasted the code into a new plugin, and ran it there; it did nothing. The plugin name suggests that it would get applied on Export; it did not.
    Any ideas on how to apply the 9-patch plugin for Sketch?

    1 Reply Last reply
    0
    • R Offline
      R Offline
      refaQtor
      wrote on last edited by
      #2

      if it can help anyone else who comes looking...
      I used ImageMagick

      mogrify -shave 1x1 -path ../style *@2x.9.png
      mogrify -shave 2x2 -path ../style *@3x.9.png
      mogrify -shave 3x3 -path ../style *@4x.9.png
      
      1 Reply Last reply
      0

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved