What allows for ?t=small to resize images?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 weeks ago
So I've come across several places where we load images by sys-id?t=small, medium and large to load a different sizes of the image.
But I can't figure out why it only works sometimes and not all of the times.
I can't find any attribute on the image field that allows for this and I can't find any information on it either.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi @Vegard S,
can you provide more details?
A screenshot or a path of where this is happning?
Thanks
/* If my response wasn’t a total disaster ↙️ ⭐ drop a Kudos or Accept as Solution ✅ ↘️ Cheers! */
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
a week ago
This is something that is handled backend by ServiceNow.
All photos support images of different sizes, which can be tested by finding any photo in for example db_image, right click on the image and open in new tab.
The photo will appear and the URL says something like:
instancename.service-now.com/299cabd7930836d0d73f30e86cba1031.iix
Now if you add ?t=small at the end you'll see it will serve you a small version of the same photo.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
I believe t='size is the URL parameter and it is used in some script (maybe widget) or some UI script to check the size passed and display the image accordingly.
Now to your question, that why it does not work overtime could be because of reasons like:
The parameter t=small is present in the URL but the page/widget does not have the appropriate script to render this.
OR
The browser does not support the size rendering.
OR
The type of image (jpg or png) does not support the resizing.
Please mark the answer correct/helpful accordingly.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
a week ago
No this is handled backend by ServiceNow's engine.
See my post to GlideFather.
