Click here to Skip to main content
15,891,184 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,

I am looking ahead to develop a WEBAPI EndPoint which accepts an Image, Resize it and return it back.

Please find the minute details below.

API Request Parameters

a)A Design ID of the Image,
b)Image Type
c)@ItemType parameter (Need to actually use it in a function called GetItemLocation)

Explanation of Function dbo.fn_GetItemLocation

This Function would pull the design location on the network based on @ItemType parameter and return the URI Filepath using which we would grab the design Image, resize it(Lets say any small size) and return it.

So Below are the contents which I want to return

API Response Parameters

a)Design ID
b)Blob with the file contents (resized)
c)field that states if it is a PNG or JPEG

What Would API Consumer do ?

Consumer would get the image for a design ID and then renders it and use it in whatever way he wants.

Please note that I just need any article or any guidance so that I can approach to start this thing up.

What I have tried:

Tried little bit of Googling but got less practical stuffs
Posted
Comments
Richard MacCutchan 25-Jan-19 4:56am    
The only time you need to resize an image is when you actually display it on screen or paper. Changing the content of an image is much more complicated as you need to adjust colours, edges etc.
vaibhav1800 26-Jan-19 5:19am    
Well thats not related to this context
Richard MacCutchan 26-Jan-19 5:31am    
OK, so how exactly do you plan to do the resizing?
vaibhav1800 26-Jan-19 13:59pm    
Still on research, I would let you know once I come up with a solution.
Richard MacCutchan 27-Jan-19 3:36am    
I would suggest you stop wasting your time. There is no easy way to resize an image file without a good knowledge of image analysis.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900