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

Rushit Patel2
Tera Guru

Hi,



any reason you are trying to get images in .png or .jpg?


It is the request of the client.


michaelfeltgen1
Kilo Explorer

Yes the reason is because Service Now does not allow to upload .iix files. My requirement is to re-use the same image from a record producer with another new one.


Hi, I faced the same issue. I used online image converter and converted .iix to png. It worked fine. You can use this online image converter https://www.pngconverter.com/ Regards, Sowmya