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

Image Manager, upload image

11 Answers 111 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Kjell
Top achievements
Rank 1
Iron
Kjell asked on 17 Dec 2014, 01:57 PM
When I upload a Picture using Image Manager I want it to be scaled down to max width of 400px (according to scale) if a picture is about 1200px wide.
How can I do that?
If an image is about 250 px, do nothing.

And i try "Resizing an image during upload" in Code Library/Editor
If I choose a .jpg file and uploads it is saved with the name and extension as the original. But it is converted into .png
How can I change it? I upload a .jpg image I want it to still .jpg after it is stripped down to the new size

11 Answers, 1 is accepted

Sort by
0
Kjell
Top achievements
Rank 1
Iron
answered on 18 Dec 2014, 09:41 AM
Has solved the problem of resize the image when i upload.

But still a problem with your example "Resizing an image during upload" in Code Library/Editor.
I choose a .jpg file and uploads it, is saved with the name and extension as the original. But it is converted into .png
Please help me solve it.....
0
Genady Sergeev
Telerik team
answered on 22 Dec 2014, 12:16 PM
Hello Kjell,

There used to be a bug in ImageManager which forced all images to be saved as PNGs but it should be resolved in the latest Telerik version. What version do you use?

Regards,
Genady Sergeev
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Kjell
Top achievements
Rank 1
Iron
answered on 22 Dec 2014, 02:06 PM
I use version 2014.3.1209.45
0
Joana
Telerik team
answered on 25 Dec 2014, 10:12 AM
Hello,

I am not able to reproduce the issue you have described. I have attached a video and an image for you to test with it too. Have you made any modifications of the project and could you verify once again that the dlls in your project are 2014.3.1209.45?

Regards,
Joana
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Kjell
Top achievements
Rank 1
Iron
answered on 26 Dec 2014, 10:24 AM
Yes, i  use version 2014.3.1209.45.
I use your exemple "resizeimage-vb.zip" from http://www.telerik.com/support/code-library/resizing-an-image-during-upload
You can try your exemple "resizeimage-vb.zip" here:
The .jpg image i upload is attached. That is a .png image after upload....

I have only change this (custom ToolsFile):
<telerik:RadEditor ID="RadEditor1" ToolsFile="AdminToolbar.xml" ImageManager-MaxUploadFileSize="10485760" Height="500" Width="700" runat="server">
</telerik:RadEditor>

​
0
Ianko
Telerik team
answered on 26 Dec 2014, 12:32 PM
Hello Kjell,

I tried with the code provided in the KB article, but to no avail. The custom content provider for image resizing is working as expected. You can examine this screencast and the project with which I tested is available in the attached zip archive.

I suggest verifying if the content provider logic is not somehow modified and results to the encountered behavior.

Regards,
Ianko
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Kjell
Top achievements
Rank 1
Iron
answered on 26 Dec 2014, 01:34 PM
I downloaded your example "custom-resize-content-provider.zip"  and double-clicked on the picture in the "ResizedImages"
See attached dump .......
0
Kjell
Top achievements
Rank 1
Iron
answered on 26 Dec 2014, 01:43 PM
Get the same type of error message if I try to open the image in Photoshop.....
0
Ianko
Telerik team
answered on 26 Dec 2014, 03:10 PM
Hi Kjell,

The file might be broken due to the file transfer.

You can try deleting it, and uploading another one to test the content provider's functionality.

Regards,
Ianko
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
0
Kjell
Top achievements
Rank 1
Iron
answered on 26 Dec 2014, 05:11 PM
It was hard to convince you that it's a bug.....
I've tried creating a new Telrik Website in Visual Studio, have tried the code sample "custom-resize-content-provider.zip" on two web servers. Same problem. The image is saved as a .png image with the file extension .jpg
Please test your example and open the resized image in Photoshop and see if you get any error message???
0
Konstantin Dikov
Telerik team
answered on 01 Jan 2015, 12:06 PM
Hello Kjell,

I have downloaded the image from the Ianko's example and I was able to open it in Gimp and Paint.NET without any issues.

Can you please see if the attached image from the example is opening correctly on your end too.


Regards,
Konstantin Dikov
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
Editor
Asked by
Kjell
Top achievements
Rank 1
Iron
Answers by
Kjell
Top achievements
Rank 1
Iron
Genady Sergeev
Telerik team
Joana
Telerik team
Ianko
Telerik team
Konstantin Dikov
Telerik team
Share this question
or