Bug #23651 Bug Fixed

Image manipulation sync not working fully

Version: 4.3.1 Reporter: Rob Allen

When editing and resyncing image manipulations it does generate images to the new sizes.

Example

  1. Image manipulation set to crop to 480 x 480
  2. Crop dimensions are adjusted to crop 320 x 320
  3. Run sync on the manipulation
  4. Images aren’t resized/rescaled
  • Including a patch file- just replace themes/ee/asset/javascript/compressed/cp/files/synchronize.js with the one in the zip.

    Manual fix would be: themes/ee/asset/javascript/compressed/cp/files/synchronize.js EE.file_manager.resize_ids needs to be replaced with

    EE.file_manager.resize_ids = function() {
        var resize_ids = [];
    
        $('input[name="sizes[]"]').each(function() {
         var field = $(this);
    
         if (field.attr('type') == 'hidden' || // Hidden input from React
                (field.attr('type') == 'checkbox' && field.prop('checked') == true)) // Real checkbox
         {
          resize_ids.push($(this).val());
         }
        });
    
        return resize_ids;
    };
.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases