Skip to main content
Solved

Images are not displaying evenly in the grid and preview screen component


Forum|alt.badge.img+3
  • Warrior
  • 29 replies

Uploaded images are displaying unevenly based on its resolution. Do we have any option to make it fit to size? 

Best answer by Mark Jongeling

A quick search on a search engine would bring multiple options. Some parties offers an free API for couple of requests a day, but I'm not recommending any party as we're not affiliated with any party. I wouldn't want to recommend an API that is not safe.

I think it might be more handy to preview the image in the Preview component. This component will automatically show a resized version of the image without cropping/stretching/editing the image which may lead to irreversible damage to the image.

View original
Did this topic help you find an answer to your question?
This topic has been closed for replies.

4 replies

Mark Jongeling
Administrator
Forum|alt.badge.img+23

Hi Usha,

That is not possible I'm afraid. Feel free to create an idea for this although it can be quite complex, because what is the "right” size? 

The preview component should auto-resize/fit to size by default.

Alternatively you can call a webservice API to crop uploaded images to be shown in the grid.

Are you asking this for the Windows/Web GUI or the Universal GUI? The picture is of a Windows/Web GUI but you added a tag with the value Universal GUI, hence my question.


Forum|alt.badge.img+3
  • Author
  • Warrior
  • 29 replies
  • June 20, 2022

Thanks for your reply Mark.

I understand its complexity from your explanation. Are there any example or previous answers of how can we use webservice API to crop the uploaded images?

I had raised this question for both Universal and Web GUI, and the picture i have attached is from Universal GUI. Same thing happens in Web GUI too but picture is not attached.


Mark Jongeling
Administrator
Forum|alt.badge.img+23
  • Administrator
  • 3945 replies
  • Answer
  • June 20, 2022

A quick search on a search engine would bring multiple options. Some parties offers an free API for couple of requests a day, but I'm not recommending any party as we're not affiliated with any party. I wouldn't want to recommend an API that is not safe.

I think it might be more handy to preview the image in the Preview component. This component will automatically show a resized version of the image without cropping/stretching/editing the image which may lead to irreversible damage to the image.


Forum|alt.badge.img+3
  • Author
  • Warrior
  • 29 replies
  • June 20, 2022

Yes Mark, i would definitely try searching online for some API solutions. 

Preview component is showing the images as it is without editing, but we expected there would be some way it will stretch or shrink the image so that it would look fit to the preview screen. Now i understood that, it can be done with the help of APIs but not through SF. 


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings