This is a migrated thread and some comments may be shown as answers.

Resize Image DPI

3 Answers 235 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Richard
Top achievements
Rank 1
Richard asked on 24 Jun 2009, 10:01 PM
Hello -

I am very new to your product. I love the ability to resize an image during upload but is there a way to resize the image with respect to it's DPI? Sometimes the image is the correct size, say 400x600 pix but at 300 or 240 dpi. Is there a way to change this image to say 72dpi greatly reducing the image file size?

Thank you.

3 Answers, 1 is accepted

Sort by
0
Tervel
Telerik team
answered on 30 Jun 2009, 10:51 AM
Hello Richard,

Pixels are a logical unit which has no definite size, but is solely dependent on the client host machine, while DPI, of course, is dependent on a physical value - the inch.
Browsers are only able to "work" with pixels. When resizing an image or querying the browser for an image's size it will be returned in pixels.
I am not sure what exactly your scenario is, but the answer to your question is more likely to be "no, this cannot be done". Still, in case you describe your scenario in more details I might be able to provide more comments.


Best wishes,
Tervel
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Richard
Top achievements
Rank 1
answered on 30 Jun 2009, 11:13 PM

Thank you for the response Tervel -

 

It might be easier to just state my problem and see what the group says.

 

We have a Knowledge Management System that stores documents. These documents can contain images. The documents (and images) could be targeted for either web display or print. Currently, when a user assembles a power point or other document it may be a total size of say 100MB, way too large for most search engines. For example, we use the Google GSA which will only consider a document for indexing if it is smaller than 30MB. Since the 100MB power point example is likely about 95MB of images, we would like a tool to shrink the size of the images. I'm assuming that the user will have to feed the images into a utility on our site that will appropriately size each image he or she sends "into the utility". I'm sort of hoping to use the RAD Editor to do this.

 

Then, our more basic need is when a user is creating a News Story or updating an image on his or her profile, we of course only want a lightweight reasonable image for the display item and an additional thumbnail image. This should not be a problem since we plan to use the Rad Editor.

 

Am I over thinking the need when the image is used for print? Is it simply a large resolution, say web images are 500 px on the long side and print images are 1600 on the long side max, then, when it's printed, it will convert down to the desired print area which in turn will compress the image giving the higher dpi of around 150 or so for print?

 

Thanks for the help -

Richard

0
Tervel
Telerik team
answered on 03 Jul 2009, 01:14 PM
Hello Richard,

The ImageEditor dialog uses a simple image processing/manipulation engine that is packed in a public class. You can perform the same manipulations that are available from the image editor dialog by writing some code. Here is a blog post of mine that discusses this:
A quick, but not so dirty Image Editor using the public RadEditor ImageEditing API

In case you need more powerful image transformation/processing capabilities, you might need to implement them yourself by using the .NET Bitmap and Graphics classes or use a specialized third-party image processing server component (Telerik does not offer such a component at this point).

Best regards,
Tervel
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Editor
Asked by
Richard
Top achievements
Rank 1
Answers by
Tervel
Telerik team
Richard
Top achievements
Rank 1
Share this question
or