How to get a png/jpg image instead of a iix?

rldejesusm
Mega Guru

Using gr.getDisplayValue(item.photo) I'm getting an .iix file outputted in my html. I want this file to be outputted as either .png or .jpg.

2 ACCEPTED SOLUTIONS

John Ping
Mega Guru

I ran into this with a background image on a Service Portal page. When I opened the .iix file in Irfanview, it told me it was a PNG and offered to change the extension. That worked for me! I went back and tried saving the message directly with a .png extension, and that worked too.


View solution in original post

rldejesusm
Mega Guru

Hey everyone,

I wanted to post a final update and thank you all for the different solutions and ideas you shared. Your input was incredibly helpful!

As a lot of you have shared the solution was simple.

 

After I downloaded the .iix file that ServiceNow was giving me, I tried just manually renaming it on my computer. I changed the file extension from .iix back to its original format (in my scenario, customers were only uploading .png and .jpg), and it worked perfectly! The file opened as a proper image without any issues. 

 

The key is that you have to know what the original file type was. But if you do, a simple rename is all it takes to get your image back. If you don't know the original file format, and you try renaming the .iix file wrapper format into a non matching file format this solution will not work.

 

Thanks again for all the help! Hope this manual trick helps someone else looking for a quick fix.

View solution in original post

17 REPLIES 17

You don't even need to go through that extra step.   Just open the file up in Notepad++ and change the extension to .png, then save down to your local disk.


Thank you @saisowmya 

John Ping
Mega Guru

I ran into this with a background image on a Service Portal page. When I opened the .iix file in Irfanview, it told me it was a PNG and offered to change the extension. That worked for me! I went back and tried saving the message directly with a .png extension, and that worked too.


asd13
ServiceNow Employee
ServiceNow Employee

Open the catalog item which has the icon you want to use, save as iix somewhere, rename file extension to .svg and then use this in your new catalog item.


This should be marked as a correct answer. Totally solved the issue