Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Hardik Fefar 9 posts 99 karma points
    6 days ago
    Hardik Fefar
    0

    When using the image crop control and uploading an image, the image is automatically resized to smaller 500px image even if no resize/crop setting are in place

    this has stopped the production environment.

    please help

  • Matthew Care 12 posts 145 karma points c-trib
    6 days ago
    Matthew Care
    0

    Hello,

    Based on your 500px limit I would assume this is a problem you're having when adding images in an RTE. There is a "maximum size for inserted images" which is configured on the RTE data type. You should look there and update accordingly. Screenshot added for visual explaination.

    RTE Settings

  • Hardik Fefar 9 posts 99 karma points
    6 days ago
    Hardik Fefar
    0

    sorry I forgot to mention may be but that is not where we are loading the images. we are using the image crop control and we have not specified anything in there.

  • Bo Jacobsen 562 posts 2268 karma points
    5 days ago
    Bo Jacobsen
    0

    Hi Hardik.

    Have you by any chance changed the MaxWidth or MaxHeight in the appSettings?

    "Umbraco": {
      "CMS": {
        "Imaging": {
          "Resize": {
            "MaxWidth": 5000,
            "MaxHeight": 5000
          }
        }
      }
    }
    

    https://our.umbraco.com/Documentation/Reference/Configuration/ImagingSettings/index-v9

  • Hardik Fefar 9 posts 99 karma points
    4 days ago
    Hardik Fefar
    0

    no sorry we did not touch anything like that

  • Bo Jacobsen 562 posts 2268 karma points
    4 days ago
    Bo Jacobsen
    0

    Do you then by any chance have any middleware registered, that add a IImageWebProcessor to intercept all images and set a width?

    Like:

    IUmbracoBuilder.Services.TryAddEnumerable(ServiceDescriptor.Singleton<IImageWebProcessor, SomeWebProcessor>());
    
    public class SomeWebProcessor : IImageWebProcessor
    {
        public IEnumerable<string> Commands => throw new NotImplementedException();
    
        public FormattedImage Process(FormattedImage image, ILogger logger, IDictionary<string, string> commands, CommandParser parser, CultureInfo culture)
        {
            // ...
    
            return image;
        }
    }
    
  • Hardik Fefar 9 posts 99 karma points
    4 days ago
    Hardik Fefar
    0

    nope, nothing like that as well

  • Bo Jacobsen 562 posts 2268 karma points
    4 days ago
    Bo Jacobsen
    0

    Can you show us your image crop setup?

Please Sign in or register to post replies

Write your reply to:

Draft