<?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 Re: Arcpy and saving image as part of document in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/arcpy-and-saving-image-as-part-of-document/m-p/368342#M29042</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm glad that we could help. Could you mark the question as answered?&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/docs/DOC-2159"&gt;Mark a reply as the Correct Answer&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 04 Jun 2015 12:06:12 GMT</pubDate>
    <dc:creator>XanderBakker</dc:creator>
    <dc:date>2015-06-04T12:06:12Z</dc:date>
    <item>
      <title>Arcpy and saving image as part of document</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-and-saving-image-as-part-of-document/m-p/368337#M29037</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On a layout, a logo (jpg-picture) has been inserted as a file-reference and not as a "static" part of the document.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Manually, I can open the mxd and get the properties of the logo-element and then check the checkbox "Save picture as part of the document"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I have a lot of mxd-files, so...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I make this change (saving the picture as part of the document) using ArcPy?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 May 2015 08:58:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-and-saving-image-as-part-of-document/m-p/368337#M29037</guid>
      <dc:creator>Lars_HolmThomsen</dc:creator>
      <dc:date>2015-05-27T08:58:37Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy and saving image as part of document</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-and-saving-image-as-part-of-document/m-p/368338#M29038</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is this not possible? Anyone?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Jun 2015 18:47:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-and-saving-image-as-part-of-document/m-p/368338#M29038</guid>
      <dc:creator>Lars_HolmThomsen</dc:creator>
      <dc:date>2015-06-02T18:47:42Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy and saving image as part of document</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-and-saving-image-as-part-of-document/m-p/368339#M29039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not sure arcpy does not have a functionality to embed images into map documents from what I've seen.&amp;nbsp; It may be possible with ArcObjects, but the current arcpy methods and functions do not allow for that.&amp;nbsp; Likewise, if you have a picture element that is saved as part of the document, it no longer has a name with ListLayoutElements and its source is unable to be changed.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Apparently this issue came up on the old forums, but was never adequately addressed by anyone.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sources checked:&lt;/P&gt;&lt;P&gt;Paul Zandbergen Python Scripting for ArcGIS&lt;/P&gt;&lt;P&gt;ArcGIS Help -arcpy mapping module - Picture Elements Methods&lt;/P&gt;&lt;P&gt;General Web Search&lt;/P&gt;&lt;P&gt;GIS Stack Exchange&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Jun 2015 19:42:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-and-saving-image-as-part-of-document/m-p/368339#M29039</guid>
      <dc:creator>IanMurray</dc:creator>
      <dc:date>2015-06-02T19:42:41Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy and saving image as part of document</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-and-saving-image-as-part-of-document/m-p/368340#M29040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migrated-users/42743"&gt;Ian Murray&lt;/A&gt; is right, this property is not exposed to arcpy: &lt;A href="http://desktop.arcgis.com/en/desktop/latest/analyze/arcpy-mapping/pictureelement-class.htm" title="http://desktop.arcgis.com/en/desktop/latest/analyze/arcpy-mapping/pictureelement-class.htm"&gt;PictureElement—Help | ArcGIS for Desktop&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In ArcGIS Pro this is no longer a problem:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;&lt;EM&gt;Pictures are always stored in the project. The sourceImage property displays the original source location during the time the picture was inserted. The file can be removed from disk and the picture will continue to display in the layout.&lt;/EM&gt;&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Source: &lt;A href="http://pro.arcgis.com/en/pro-app/arcpy/mapping/pictureelement-class.htm" title="http://pro.arcgis.com/en/pro-app/arcpy/mapping/pictureelement-class.htm"&gt;PictureElement—ArcPy | ArcGIS for Professionals&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;.. but that doesn't help you...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is indeed support for this in ArcObjects using &lt;EM&gt;IPictureElement::SavePictureInDocument (boolean)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://resources.arcgis.com/en/help/arcobjects-net/componenthelp/index.html#//001200000tw0000000" title="http://resources.arcgis.com/en/help/arcobjects-net/componenthelp/index.html#//001200000tw0000000"&gt;ArcObjects Help for .NET developers&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This post by &lt;A href="https://community.esri.com/migrated-users/38677"&gt;Alexander Nohe&lt;/A&gt;&amp;nbsp; has instructions on how to use ArcObjects in Python if that's what you would like:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/migration-blogpost/1175"&gt;Create a new MXD through Python.&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Jun 2015 03:28:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-and-saving-image-as-part-of-document/m-p/368340#M29040</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2015-06-03T03:28:21Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy and saving image as part of document</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-and-saving-image-as-part-of-document/m-p/368341#M29041</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanx Xander and Ian - you gave me the answers I needed!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi from Lars&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jun 2015 12:00:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-and-saving-image-as-part-of-document/m-p/368341#M29041</guid>
      <dc:creator>Lars_HolmThomsen</dc:creator>
      <dc:date>2015-06-04T12:00:48Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy and saving image as part of document</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-and-saving-image-as-part-of-document/m-p/368342#M29042</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm glad that we could help. Could you mark the question as answered?&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/docs/DOC-2159"&gt;Mark a reply as the Correct Answer&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jun 2015 12:06:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-and-saving-image-as-part-of-document/m-p/368342#M29042</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2015-06-04T12:06:12Z</dc:date>
    </item>
  </channel>
</rss>

