<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Bulk Import Images Into a Style? in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/bulk-import-images-into-a-style/m-p/1146316#M51792</link>
    <description>&lt;P&gt;I feel like I must be missing something easy here.&amp;nbsp; I have been on a hunt for the National Park Service symbols or something similar for use (and more importantly, reuse).&amp;nbsp; Posted looking for it &lt;A href="https://community.esri.com/t5/renewable-energy-questions/national-parks-service-symbols/m-p/1143927/highlight/true#M140" target="_self"&gt;here&lt;/A&gt;.&amp;nbsp; &amp;nbsp;I never got a response so I thought, ok, I'll just go get the SVGs from the the &lt;A href="https://www.nps.gov/maps/tools/symbol-library/index.html" target="_self"&gt;NPS' source&lt;/A&gt;, I'll just make my own SLYX file and upload them all.&amp;nbsp; Now I'll have a style that I can reuse in other projects.&amp;nbsp; It appears that that there is is no way to bulk upload images to a Style?&amp;nbsp; It actually appears I can't even add them one at a time, it looks I have to first use them in a layer and then add them to the style?&amp;nbsp; &amp;nbsp;I'm sure I must be missing something......&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 22 Feb 2022 01:04:48 GMT</pubDate>
    <dc:creator>jdruding</dc:creator>
    <dc:date>2022-02-22T01:04:48Z</dc:date>
    <item>
      <title>Bulk Import Images Into a Style?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/bulk-import-images-into-a-style/m-p/1146316#M51792</link>
      <description>&lt;P&gt;I feel like I must be missing something easy here.&amp;nbsp; I have been on a hunt for the National Park Service symbols or something similar for use (and more importantly, reuse).&amp;nbsp; Posted looking for it &lt;A href="https://community.esri.com/t5/renewable-energy-questions/national-parks-service-symbols/m-p/1143927/highlight/true#M140" target="_self"&gt;here&lt;/A&gt;.&amp;nbsp; &amp;nbsp;I never got a response so I thought, ok, I'll just go get the SVGs from the the &lt;A href="https://www.nps.gov/maps/tools/symbol-library/index.html" target="_self"&gt;NPS' source&lt;/A&gt;, I'll just make my own SLYX file and upload them all.&amp;nbsp; Now I'll have a style that I can reuse in other projects.&amp;nbsp; It appears that that there is is no way to bulk upload images to a Style?&amp;nbsp; It actually appears I can't even add them one at a time, it looks I have to first use them in a layer and then add them to the style?&amp;nbsp; &amp;nbsp;I'm sure I must be missing something......&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Feb 2022 01:04:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/bulk-import-images-into-a-style/m-p/1146316#M51792</guid>
      <dc:creator>jdruding</dc:creator>
      <dc:date>2022-02-22T01:04:48Z</dc:date>
    </item>
    <item>
      <title>Re: Bulk Import Images Into a Style?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/bulk-import-images-into-a-style/m-p/1683344#M101784</link>
      <description>&lt;P&gt;Is there any solution for bulk import PNGs into the ArcGIS Pro styles (.stylx)?&lt;/P&gt;&lt;P&gt;I have over 300 icons and I’m trying to avoid adding them one by one and manually setting each to a Picture Marker.&lt;/P&gt;&lt;P&gt;I’m using ArcGIS Pro 3.6.0.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Feb 2026 14:16:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/bulk-import-images-into-a-style/m-p/1683344#M101784</guid>
      <dc:creator>DiegoMeira</dc:creator>
      <dc:date>2026-02-10T14:16:24Z</dc:date>
    </item>
    <item>
      <title>Re: Bulk Import Images Into a Style?</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/bulk-import-images-into-a-style/m-p/1684350#M101910</link>
      <description>&lt;P&gt;I found this other community post that was very helpful. With the code provided I managed to use ArcPy to load the PNG files into a .stylx file.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/t5/arcgis-pro-documents/how-to-programatically-add-symbols-to-a-stylx/ta-p/921159" target="_blank"&gt;How to programatically add symbols to a .stylx (St... - Esri Community&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Here is my code:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import os
import base64
import sqlite3
import json
import re
from pathlib import Path

# Paths
symbol_directory = r"&amp;lt;png_symbols_folder_full_path&amp;gt;"
stylx_file ="template_style.stylx"
stylx_path = Path(__file__).with_name(stylx_file).resolve()

# Create stylx file if it doesn't exist
if not os.path.exists(stylx_path):
    open(stylx_path, "w").close()

print("Connecting Style DB...")
conn = sqlite3.connect(stylx_path, timeout=60)
cursor = conn.cursor()
print("Connected.")

# Ensure ITEMS table exists
cursor.execute("""
CREATE TABLE IF NOT EXISTS ITEMS (
    ID INTEGER PRIMARY KEY AUTOINCREMENT,
    CLASS INTEGER,
    CATEGORY TEXT,
    NAME TEXT,
    TAGS TEXT,
    CONTENT TEXT,
    KEY TEXT
)
""")

print("Table ready.")
print("Inserting symbols...")

for file_name in os.listdir(symbol_directory):
    if file_name.lower().endswith(".png"):
        symbol_name = os.path.splitext(file_name)[0]
        image_path = os.path.join(symbol_directory, file_name)

        # Read and encode PNG
        with open(image_path, "rb") as img_file:
            encoded_image = base64.b64encode(img_file.read()).decode("utf-8")

        # Proper CIM Picture Marker symbol
        new_symbol_json = {
            "type": "CIMPointSymbol",
            "symbolLayers": [
                {
                    "type": "CIMPictureMarker",
                    "enable": True,
                    "size": 30,
                    "url": f"data&amp;amp;colon;image/png;base64,{encoded_image}",
                    "anchorPoint": {"x": 0, "y": 0},
                    "anchorPointUnits": "Relative",
                    "scaleX": 1,
                    "tintColor": {"values": [255, 255, 255, 255]},
                    "colorLocked": True,
                    "textureFilter": "Best"
                }
            ]
        }

        new_row = (
            3,  # CLASS = Point Symbol
            "",
            symbol_name,
            "",
            json.dumps(new_symbol_json),
            symbol_name.replace(".", "_"),
        )

        cursor.execute(
            "INSERT INTO ITEMS(CLASS, CATEGORY, NAME, TAGS, CONTENT, KEY) VALUES(?,?,?,?,?,?)",
            new_row,
        )

        print(f"Inserted: {symbol_name}")

conn.commit()
conn.close()
print("All symbols added to the .stylx file.")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 13 Feb 2026 16:15:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/bulk-import-images-into-a-style/m-p/1684350#M101910</guid>
      <dc:creator>DiegoMeira</dc:creator>
      <dc:date>2026-02-13T16:15:05Z</dc:date>
    </item>
  </channel>
</rss>

