# Use an SVG File

{% hint style="info" %} <mark style="color:blue;">**TIP:**</mark> Expand past the common definition of a quilt block. If you're doing an entire FPP quilt, you can even think of the quilt top as a "quilt block" and import a huge SVG file.
{% endhint %}

## <mark style="color:blue;">Create a Custom Block using an SVG File</mark>

Up until now, creating a custom block in PreQuilt was limited to the shapes that are preloaded in PreQuilt (square, HST, orange peel, etc).&#x20;

But our newest update will enable you to import an SVG file and use it to import other shapes that you are unable to create using those basic building block shapes.

#### <mark style="color:blue;">What's an SVG?</mark>

Scalable Vector Graphics (SVG) is a web-friendly vector file format. It is not pixel-based, and uses mathematical formulas based on points and lines. Programs like Illustrator, Photoshop, and Inkscape can save or export SVG files (.svg).

***

## <mark style="color:blue;">01 | Prepare your SVG File</mark>

<figure><img src="/files/lgqIiM3p1InHGLnTDFH1" alt=""><figcaption><p><em>Example SVG file that can be imported into PreQuilt</em></p></figcaption></figure>

{% hint style="info" %} <mark style="color:blue;">**BEFORE:**</mark> Make sure that you create and save your shapes as an .SVG file on your computer first. Also, very helpful to have your block already sized (1 inch = 72 pixels) so that they import at the correct scale.
{% endhint %}

There are few properties that are important to note when creating your SVG file so that it can be imported into PreQuilt. Your SVG should:

#### <mark style="color:blue;">1. SVG files are at Scale.</mark>

For best results, make sure that your SVG file is at scale. 1:1 measurements are helpful, but not necessary. Make sure that they can be resized to your desired block size.&#x20;

Use the ratio 1 inch = 72 pixels as a helpful conversion.

#### <mark style="color:blue;">2. SVG shapes are Filled.</mark>

In order for the SVG file to be usable and convertible to block shapes (patches or pieces), they need to be individual filled shapes. They cannot be outlines or line drawings.

***

## <mark style="color:blue;">02 | Import SVG File into PreQuilt</mark>

The first step is to create a custom block and then import your SVG file into the block.&#x20;

1. Click on the <mark style="color:blue;">**BLOCKS**</mark> tab on the left side control panel.

   <div align="left"><figure><img src="/files/v49hucF4g0NM3mW1CBAH" alt="" width="299"><figcaption></figcaption></figure></div>
2. Click on the <mark style="color:blue;">**Make Custom Block**</mark> button.

   <div align="left"><figure><img src="/files/rShdxheuKgqafW2tzDrG" alt=""><figcaption></figcaption></figure></div>
3. The **Block Editor** panel will slide out.&#x20;

   <figure><img src="/files/PfsJwageuHh7TSSXugzP" alt=""><figcaption><p><em>Block Editor panel</em></p></figcaption></figure>
4. Click on the <mark style="color:blue;">**SVG**</mark> button (<img src="/files/K1D6Dj6HWjUoWkDFptNN" alt="" data-size="line">) on the central vertical toolbar.

   <div align="left"><figure><img src="/files/6T354r21BD7pe1q3VG0q" alt="" width="79"><figcaption></figcaption></figure></div>
5. Your computer's file system will open. Select the <mark style="color:blue;">**SVG file**</mark> and click <mark style="color:blue;">**Open**</mark>.

   * **Note:** Wording might be different on a PC.

   <div align="left"><figure><img src="/files/CTMlIpruFtFLjA8qmzSL" alt="" width="548"><figcaption></figcaption></figure></div>
6. A pop-up message will appear once your SVG file has been successfully imported.

   <div align="left"><figure><img src="/files/C0CdA1kSsU28EzlOaSPj" alt="" width="422"><figcaption></figcaption></figure></div>

   * If the width and height of the block is correct → Click the <mark style="color:blue;">**No. Don't resize**</mark> button.
   * If the width and height of the block is not correct → Click on the <mark style="color:blue;">**Yes. Resize Block**</mark> button.&#x20;
     * **Note:** The block and all SVG shapes will scale to fit the block space.
7. You will now see our Moon shape imported into PreQuilt.

   <div align="left"><figure><img src="/files/WarETKRSem2UTzAYQ31o" alt=""><figcaption><p><em>SVG file is now a block piece in PreQuilt</em></p></figcaption></figure></div>
8. Click on the larger <mark style="color:blue;">**Save**</mark> button (<img src="/files/RErHu7FwpoEymt52qq9M" alt="" data-size="line">) in the top right corner of the Block Editor. Then click on <mark style="color:blue;">**Save to Quilt**</mark> to return to the digital quilt wall.

   <div align="left"><figure><img src="/files/PruomddBo4SesJlowX7K" alt=""><figcaption></figcaption></figure></div>
9. You will now see your new block saved in your BLOCKS tab.

   <div align="left"><figure><img src="/files/RFDTGeDBO7mJPV2VDoE0" alt=""><figcaption><p><em>Saved block using SVG shape</em></p></figcaption></figure></div>

***

## <mark style="color:blue;">03 | Modify SVG Shapes for Quilt Blocks</mark>

Now that we have our SVG shape imported into PreQuilt, you might want to manipulate it or modify it. There are a few different things you can do to your SVG shape now.

### <mark style="color:blue;">a | Add a Fabric Link to your SVG Shape</mark>

One of the huge benefits of using PreQuilt is that you can quickly link different fabrics (solids or printed) to different block pieces. And that's true for your newly imported SVG shapes!&#x20;

To learn more about Fabric Links click here.

1. Click on the <mark style="color:blue;">**Edit Block**</mark> button for the quilt block that has your SVG shape.

   <div align="left"><figure><img src="/files/CTRCFSCEoZNExzqwK4T1" alt=""><figcaption></figcaption></figure></div>

2. The Block Editor panel will slide out. Click on the <mark style="color:blue;">**SVG shape**</mark> that you would like to add a Fabric Link to. (A bounding box will appear around the shape once selected.)

   <div align="left"><figure><img src="/files/UP0IR23OSEFJTGplz4f8" alt=""><figcaption></figcaption></figure></div>

3. The FABRICS tab will appear. Click on the smaller <mark style="color:blue;">**Fabric Links**</mark> tab.

   * **Note:** SVG shapes are imported using Static Fabrics (to learn more about click [*here*](/prequilt-101/all-about-fabric/static-fabrics.md)).

   <div align="left"><figure><img src="/files/ogDKoHxuz22mKh3KAmuJ" alt=""><figcaption></figcaption></figure></div>

4. Click on the <mark style="color:blue;">**Link**</mark> button for the Fabric Link you'd like to use.

   1. In this example, I'm going to use Fabric Link B (currently using Kona Black).

   <div align="left"><figure><img src="/files/AjdgMAPSomBXzqyt4SlH" alt=""><figcaption></figcaption></figure></div>

5. You will now see the SVG shape is now black.

   <div align="left"><figure><img src="/files/h76tcvCNsRNRfDDhvxBu" alt=""><figcaption></figcaption></figure></div>

6. Click on the larger <mark style="color:blue;">**Save**</mark> button (<img src="/files/RErHu7FwpoEymt52qq9M" alt="" data-size="line">) in the top right corner of the Block Editor. Then click on <mark style="color:blue;">**Save to Quilt**</mark> to return to the digital quilt wall.

   <div align="left"><figure><img src="/files/DTexY3XCP8BUircKgXJg" alt=""><figcaption></figcaption></figure></div>

### <mark style="color:blue;">b | Add a Background to an Imported SVG Block</mark>

If you see a gingham print or checkerboard print around your imported SVG shape, you do not have a background fabric in place. Make sure you add one!

1. Click on the <mark style="color:blue;">**Edit Block**</mark> button for the quilt block that has your SVG shape.

   <div align="left"><figure><img src="/files/4s9uvdVXHrT19ft7m5oL" alt=""><figcaption></figcaption></figure></div>
2. The Block Editor panel will slide out. To add a background, click on the <mark style="color:blue;">**square shape**</mark> (<img src="/files/FMjIGp1pCFjtvcWz6loy" alt="" data-size="line">)on the central vertical toolbar. (Default Fabric Link A used).  A square will appear on top of our SVG shape.&#x20;

   <div align="left"><figure><img src="/files/IxpegBKQS6v24LxrpxOT" alt=""><figcaption></figcaption></figure></div>
3. Click on the <mark style="color:blue;">**Scale to Fit**</mark> button (<img src="/files/pT6zEKCmx8z8JwfJMUN8" alt="" data-size="line">) the central vertical toolbar.

   <div align="left"><figure><img src="/files/v36w0rWva0T3Y4w5lWwj" alt=""><figcaption></figcaption></figure></div>
4. Since the square is the top layer, it will expand to fill the entire block space and cover our SVG shape. To move it to the background, click on the <mark style="color:blue;">**Layers**</mark> tab.

   <div align="left"><figure><img src="/files/8IPUOdutfWUB3g6AiM4P" alt="" width="383"><figcaption></figcaption></figure></div>
5. Then <mark style="color:blue;">**click on our square shape**</mark> and while still <mark style="color:blue;">**holding down on the button, move it below**</mark> our SVG shape.

   <div><figure><img src="/files/xnr6AP0T01VHIEMaQG2S" alt=""><figcaption><p><em>Before: Square piece is on top of moon shape</em></p></figcaption></figure> <figure><img src="/files/35MpdMUAchvMDnPJvlSm" alt=""><figcaption><p><em>After: Square piece is underneath moon shape</em></p></figcaption></figure></div>
6. Now our block has a background fabric using Fabric Link A.

   * Note: That there no longer is a gingham or checkerboard transparency behind the SVG shape. This indicates that the background is no longer empty.

   <div><figure><img src="/files/WRwBIv6U0yz3ozV5uAxr" alt=""><figcaption><p><em>Before layering</em></p></figcaption></figure> <figure><img src="/files/ZQlQfo81CBIX4M9mwSpn" alt=""><figcaption><p><em>Moon shape now has a background</em></p></figcaption></figure></div>

### <mark style="color:blue;">c | Rotate Your SVG Shape</mark>

It's easy to rotate your SVG shape in PreQuilt. You will need to use the bounding box around the SVG shape to rotate it.

1. In the Block Editor, click on the <mark style="color:blue;">**SVG shape**</mark> you'd like to rotate.
   * **Note**: You will notice that there is now a bounding box around the shape. The bounding box has 8 smaller squares located in each corner and in the middle of each side of the box. There is also one square that appears above the shape.
2. Using the mouse or trackpad, <mark style="color:blue;">**click on and hold onto the square**</mark> that appears above the shape. While holding, move the square to rotate the shape in place.&#x20;

   <div align="left"><figure><img src="/files/6uw6KkVPSalZ0ABbXiJl" alt=""><figcaption><p><em>Top square circled in blue</em></p></figcaption></figure></div>
3. <mark style="color:blue;">**Release**</mark> the button once the shape is rotated as desired.

   <div align="left"><figure><img src="/files/BTQHJW0f361YNscjngni" alt=""><figcaption><p><em>Rotated SVG shape</em></p></figcaption></figure></div>

### <mark style="color:blue;">d | Resize Your SVG Shape</mark>

{% hint style="info" %} <mark style="color:blue;">**TIP:**</mark> It's a good idea to turn off the Snap to Position and Snap to Scale features when resizing your SVG shape. Those buttons are both found on the central, vertical toolbar. By turning them off, you will have more control over the size and placement of your SVG shape.
{% endhint %}

You will need to use the bounding box around the SVG shape to resize it.

1. In the Block Editor, click on the <mark style="color:blue;">**SVG shape**</mark> you'd like to resize.
   * **Note**: You will notice that there is now a bounding box around the shape. The bounding box has 8 smaller squares located in each corner and in the middle of each side of the box.&#x20;
2. Using the mouse or trackpad, <mark style="color:blue;">**click on and hold onto one of the corner squares**</mark> of the bounding box that appears around the shape. While holding, <mark style="color:blue;">**move**</mark> the square to make the shape bigger or smaller.

   <div align="left"><figure><img src="/files/mOXjaK9vJjenC4ibVxFW" alt=""><figcaption><p><em>One corner square circled in blue</em></p></figcaption></figure></div>
3. <mark style="color:blue;">**Release**</mark> the button once the shape is resized as desired.

   <div align="left"><figure><img src="/files/Tith5aUifDVKgTkFbTYi" alt=""><figcaption><p><em>Resized SVG shape</em></p></figcaption></figure></div>

### <mark style="color:blue;">e | Duplicate Your SVG Shape</mark>

Much like the other shapes in your PreQuilt built blocks, you can also duplicate (or clone) your SVG shapes.

1. In the Block Editor, click on the <mark style="color:blue;">**SVG shape**</mark> you'd like to duplicate.&#x20;

   <div align="left"><figure><img src="/files/oouyZP5y2DeXjLviOh4R" alt=""><figcaption></figcaption></figure></div>
2. Click on the <mark style="color:blue;">**Clone**</mark> button (<img src="/files/M8RXCWYgs4FAIEqujM8H" alt="" data-size="line">) on the central, vertical toolbar.

   <div align="left"><figure><img src="/files/avxKqUkmiK5VAK3orXeq" alt=""><figcaption></figcaption></figure></div>
3. Another copy of your SVG shape will appear in a staggered position to its original.

   <div align="left"><figure><img src="/files/uQuVboVZmQf767QO4fiw" alt=""><figcaption></figcaption></figure></div>
4. Move and rotate it as desired.

   <div align="left"><figure><img src="/files/d7NrROyfnDks92AOO1us" alt=""><figcaption></figcaption></figure></div>

### <mark style="color:blue;">f | Add Another SVG Shape</mark>

If you'd like to add an additional SVG shape to your block, no problem!

1. In the Block Editor, click on the SVG button (<img src="/files/MRwkAs2vkMgXfQLu8DSb" alt="" data-size="line">) on the central vertical toolbar.

   <div align="left"><figure><img src="/files/wH3UVsXDN94gshXdLkfN" alt="" width="79"><figcaption></figcaption></figure></div>
2. Your computer's file system will open. Select the <mark style="color:blue;">**SVG file**</mark> and click <mark style="color:blue;">**Open**</mark>.

   * **Note:** Wording might be different on a PC.

   <div align="left"><figure><img src="/files/OLIII7BY0apP3KDLAPb4" alt="" width="547"><figcaption></figcaption></figure></div>
3. A pop-up message will appear once your SVG file has been successfully imported. Click the <mark style="color:blue;">**No. Don't resize**</mark> button.

   <div align="left"><figure><img src="/files/h9qWSc7wwdJcDavQXiQR" alt="" width="421"><figcaption></figcaption></figure></div>
4. You will now see our new pill shape imported into this block.

   <div align="left"><figure><img src="/files/uiGR6lttT7oKYEbAkdIg" alt=""><figcaption></figcaption></figure></div>
5. Move and rotate it as desired.

   <div align="left"><figure><img src="/files/ItNLv1faGjYelwIeLG56" alt=""><figcaption></figcaption></figure></div>
6. Click on the larger <mark style="color:blue;">**Save**</mark> button (<img src="/files/RErHu7FwpoEymt52qq9M" alt="" data-size="line">) in the top right corner of the Block Editor. Then click on <mark style="color:blue;">**Save to Quilt**</mark> to return to the digital quilt wall.

   <div align="left"><figure><img src="/files/F2yw6dsixe0n4BtOiEWk" alt=""><figcaption></figcaption></figure></div>
7. You will now see your new block saved in your BLOCKS tab.

   <div align="left"><figure><img src="/files/LUyihvTIcEMcu3Az7vcR" alt=""><figcaption></figcaption></figure></div>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.prequilt.com/prequilt-101/all-about-quilt-blocks/use-an-svg-file.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
