<?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 Feature report: conditional query, check image size, in a repeat in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/feature-report-conditional-query-check-image-size/m-p/1411128#M56271</link>
    <description>&lt;P&gt;Is it possible to compare image sizes using an if statement in a repeat based on an image question with an appearance of multiline? Most photos are taken in landscape mode but sometimes it is in portrait. I don't want to squish the portrait photos.&lt;/P&gt;&lt;P&gt;${#photos}&lt;/P&gt;&lt;P&gt;${if $file | getValue:"height" &amp;gt; $file | getValue:"width"} ${$file | size:400:600} ${/}&lt;/P&gt;&lt;P&gt;${if $file | getValue:"width" &amp;gt; $file | getValue:"height"} ${$file | size:600:400} ${/}&lt;/P&gt;&lt;P&gt;${/}&lt;/P&gt;&lt;P&gt;Usually, I get this error when uploading the template:&lt;/P&gt;&lt;P&gt;Error: An error occurred when checking the report template. The end tag &lt;I&gt;${/}&lt;/I&gt; is unopened.&lt;/P&gt;&lt;P&gt;Sometimes it loads but fails on the generating of the report:&lt;/P&gt;&lt;P&gt;An error occurred when rendering by the report engine. Failed to parse&amp;nbsp;&lt;I&gt;${if $file | getValue:"height" &amp;gt; $file | getValue:"width"}&lt;/I&gt;&amp;nbsp;since it is an invalid expression.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 17 Apr 2024 18:24:44 GMT</pubDate>
    <dc:creator>MikeOnzay</dc:creator>
    <dc:date>2024-04-17T18:24:44Z</dc:date>
    <item>
      <title>Feature report: conditional query, check image size, in a repeat</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/feature-report-conditional-query-check-image-size/m-p/1411128#M56271</link>
      <description>&lt;P&gt;Is it possible to compare image sizes using an if statement in a repeat based on an image question with an appearance of multiline? Most photos are taken in landscape mode but sometimes it is in portrait. I don't want to squish the portrait photos.&lt;/P&gt;&lt;P&gt;${#photos}&lt;/P&gt;&lt;P&gt;${if $file | getValue:"height" &amp;gt; $file | getValue:"width"} ${$file | size:400:600} ${/}&lt;/P&gt;&lt;P&gt;${if $file | getValue:"width" &amp;gt; $file | getValue:"height"} ${$file | size:600:400} ${/}&lt;/P&gt;&lt;P&gt;${/}&lt;/P&gt;&lt;P&gt;Usually, I get this error when uploading the template:&lt;/P&gt;&lt;P&gt;Error: An error occurred when checking the report template. The end tag &lt;I&gt;${/}&lt;/I&gt; is unopened.&lt;/P&gt;&lt;P&gt;Sometimes it loads but fails on the generating of the report:&lt;/P&gt;&lt;P&gt;An error occurred when rendering by the report engine. Failed to parse&amp;nbsp;&lt;I&gt;${if $file | getValue:"height" &amp;gt; $file | getValue:"width"}&lt;/I&gt;&amp;nbsp;since it is an invalid expression.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Apr 2024 18:24:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/feature-report-conditional-query-check-image-size/m-p/1411128#M56271</guid>
      <dc:creator>MikeOnzay</dc:creator>
      <dc:date>2024-04-17T18:24:44Z</dc:date>
    </item>
    <item>
      <title>Re: Feature report: conditional query, check image size, in a repeat</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/feature-report-conditional-query-check-image-size/m-p/1411210#M56277</link>
      <description>&lt;P&gt;I don't believe this is a supported operation. Cool idea though.&lt;/P&gt;&lt;P&gt;When specifying a photo's height width, there are two things to consider: 1) width x height, and 2) max width x max height. [See &lt;A href="https://doc.arcgis.com/en/survey123/browser/analyze-results/featurereporttemplates.htm" target="_self"&gt;Images and other attachments&lt;/A&gt;]&lt;/P&gt;&lt;P&gt;Right now, you have width x height specified. Have you tried specifying a max? E.g.,&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;STRONG&gt;${image1 | size:0:0:600:600}&lt;/STRONG&gt; &lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Apr 2024 20:40:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/feature-report-conditional-query-check-image-size/m-p/1411210#M56277</guid>
      <dc:creator>abureaux</dc:creator>
      <dc:date>2024-04-17T20:40:05Z</dc:date>
    </item>
  </channel>
</rss>

