After upgrading to 3.4, some of the Addin icons don't load properly

851
13
Jump to solution
01-30-2025 10:04 AM
zhangjinzhou
Occasional Contributor

zhangjinzhou_0-1738260055442.png

I am working on a ArcGIS Pro Addin. The ribbon was good in ArcGIS Pro 3.2. After upgrading to 3.4, some of the buttons don't load properly anymore. All of the buttons are 32px by 32px png. What could be the issue?

 

// Some sample code
        <group id="CommunityVizPro_ComponentsGroup" caption="CViz Pro Analysis Components" appearsOnAddInTab="false" condition="cvpro_isCVAnalysisCondition">
          <button refID="CommunityVizProModule_ShowScenarioManagerButton" size="large" />
          <button refID="CommunityVizProModule_ShowTagManagerButton" size="large" />
          <button refID="CommunityVizProModule_DataPane_ShowButton" size="large" />
          <button refID="CommunityVizPro_ChartPane_ShowButton" size="large" />
          <button refID="CommunityVizPro_AssumptionPane_ShowButton" size="large" />
          <button refID="CommunityVizPro_IndicatorsPane_ShowButton" size="large" />
          <button refID="CommunityVizPro_AttributesPane_ShowButton" size="large" />
          <button refID="CommunityVizProModule_ShowSavedViewManagerButton" size="large" />
          <!-- <button refID="CommunityVizProModule_AnalysisPropertyPage_ShowButton" separator="true" size="large"/>-->
        </group>

        <button id="CommunityVizProModule_ShowTagManagerButton" caption="Tags" className="ShowTagManagerButton" loadOnClick="true" smallImage="Images\TagManager_32.png" largeImage="Images\TagManager_32.png">
          <tooltip heading="Show Tag Setup">Open window for managing CViz Pro tags<disabledText /></tooltip>
        </button>
        <button id="CommunityVizProModule_ShowSavedViewManagerButton" caption="SavedViews" className="ShowSavedViewManagerButton" loadOnClick="true" smallImage="Images\SavedViewManager_32.png" largeImage="Images\SavedViewManager_32.png">
          <tooltip heading="Show Saved View Setup">Open window for managing CViz Pro saved views<disabledText /></tooltip>
        </button>
        <button id="CommunityVizProModule_ShowScenarioManagerButton" caption="Scenarios" className="ShowScenarioManagerButton" loadOnClick="true" smallImage="Images\Scenarios_32.png" largeImage="Images\Scenarios_32.png">
          <tooltip heading="Show Scenario Setup">Open window for managing CViz Pro scenarios<disabledText /></tooltip>
        </button>
        <button id="CommunityVizProModule_ShowUpdateAnalysisButton" caption="Update Analysis" className="ShowUpdateAnalysisButton" loadOnClick="true" smallImage="Images\UpdateAnalysis_16.png" largeImage="Images\UpdateAnalysis_32.png">
          <tooltip heading="Show Update Analysis form">Re-run formulas for selected analysis components.<disabledText /></tooltip>
        </button>
        <button id="CommunityVizProModule_SuitabilityToolButton" caption="Suitability" className="SuitabilityToolButton" loadOnClick="true" smallImage="Images\Suitability.png" largeImage="Images\Suitability.png">
          <tooltip heading="Suitability Wizard">Rate the suitability of different locations for a given purpose.<disabledText /></tooltip>
        </button>

 

13 Replies
vanesch
Occasional Contributor

Sorry, it's not that the image is incorrect; it just has a really high DPI (300, which I believe is print quality). I used GIMP to reduce it to 72 DPI (web standard), and that made it work. I also found some other free utilities, like: https://imgcandy.com/dpi-converter.html.

0 Kudos
MK13
by
Frequent Contributor

@vanesch @UmaHarano reducing the resolution to 72 dpi worked! Is this a new limitation with 3.4 and will it be resolved? My images at higher resolutions were working just fine with the previous versions of pro. 

0 Kudos
vanesch
Occasional Contributor

Yes, the icon not stretching is a bug in Pro that we'll get fixed.

zhangjinzhou
Occasional Contributor

Part of my problem was actually caused by wrong build action of the image files.

zhangjinzhou_0-1742226201782.png

0 Kudos