Image Manager, upload image

13 posts, 0 answers
  1. Kjell
    Kjell avatar
    203 posts
    Member since:
    May 2011

    Posted 17 Dec 2014 Link to this post

    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
  2. Kjell
    Kjell avatar
    203 posts
    Member since:
    May 2011

    Posted 18 Dec 2014 in reply to Kjell Link to this post

    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.....
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Genady Sergeev
    Admin
    Genady Sergeev avatar
    1596 posts

    Posted 22 Dec 2014 Link to this post

    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.

     
  5. Kjell
    Kjell avatar
    203 posts
    Member since:
    May 2011

    Posted 22 Dec 2014 in reply to Genady Sergeev Link to this post

    I use version 2014.3.1209.45
  6. Joana
    Admin
    Joana avatar
    70 posts

    Posted 25 Dec 2014 Link to this post

    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.

     
  7. Kjell
    Kjell avatar
    203 posts
    Member since:
    May 2011

    Posted 26 Dec 2014 in reply to Joana Link to this post

    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>

  8. Ianko
    Admin
    Ianko avatar
    1535 posts

    Posted 26 Dec 2014 Link to this post

    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.

     
  9. Kjell
    Kjell avatar
    203 posts
    Member since:
    May 2011

    Posted 26 Dec 2014 in reply to Ianko Link to this post

    I downloaded your example "custom-resize-content-provider.zip"  and double-clicked on the picture in the "ResizedImages"
    See attached dump .......
  10. Kjell
    Kjell avatar
    203 posts
    Member since:
    May 2011

    Posted 26 Dec 2014 in reply to Kjell Link to this post

    Get the same type of error message if I try to open the image in Photoshop.....
  11. Ianko
    Admin
    Ianko avatar
    1535 posts

    Posted 26 Dec 2014 Link to this post

    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.

     
  12. Kjell
    Kjell avatar
    203 posts
    Member since:
    May 2011

    Posted 26 Dec 2014 in reply to Ianko Link to this post

    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???
  13. Konstantin Dikov
    Admin
    Konstantin Dikov avatar
    1800 posts

    Posted 01 Jan 2015 Link to this post

    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.

     
  14. Kjell
    Kjell avatar
    203 posts
    Member since:
    May 2011

    Posted 01 Jan 2015 in reply to Konstantin Dikov Link to this post

    Yes, this image "animal.jpg" can be opened and formatted correctly
    Why is same example not work in http://test.vuollerim.se/test/Default_Vb.aspx
    Can give you ftp right if you want to try the actual code / example?
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017