2 of 2 people found this helpful
The problem is because of caching of SVG files. Take a look at this: PI Graphics not updating SVGs (Showing Old SVGs) on Sharepoint Portal
I tried to delete all temporary files in SVG folder, but it didn't help. Now I am thinking to do the following:
- Delete the old SVG from the Sharepoint doc lib
- Upload the new SVG with a slightly different name
- Configure a web part test site to show the new SVG inside a PI Graphic webpart
- Rename the new SVG to the old name
But if I will do it, I'll lost version history of file, isn't it?
If your Sharepoint contains version history that might be the case.
But instead of deleting the file itself, did you try clearing the cache? It was described in the mentioned thread.
And I believe the cache has a relatively limited lifespan, if you tried loading this today it should fetch the new file.
Unfortunately, it didn't help. Our SharePoint developer said that PI Graphic shows new objects or new positions for objects, but it doesn't show the new size of pictures.
P.s.: Also I would like to notice that we don't use https.
Just a doubt .. are you changing the image names when changing them? Can you please try this?
- Modify the image
- Save it under a different name
- Purge the "old" image
- Insert the "new" image
- Save the SVG
- Upload SVG and "new" image to your SharePoint.
Thanks for the advice. I tried this, but it didn't help also. But I explored some details yesterday.
So, we have three sizes of images (JPG extension): 1) an original size in SharePoint doc lib; 2) a modified size via PI ProcessBook (which we want to see in PI Graphic); 3) an incorrect size via PI Graphic.
I noticed that, for example, Fit All zoom option affects on the display's size. Maybe, some scale options also affects?
1 of 1 people found this helpful
Hey, guys! I found a solution for this issue.
So, a little explanation:
All modifications in the code of the svg file works. But I had an issue, that I couldn't set weight and height for the images. I tried to change them, but it was the same picture in PI Graphic. You can see it on the screenshots in the first oost.
After a long investigation, finally I found this topic with the solution:
If you want the image to stretch to fill the width and height you specify exactly (horizontally andvertically), use