Bug #23651 Bug Fixed

Image manipulation sync not working fully

Version: 4.3.1 Reporter: Rob (bluedreamer)

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
  • We’ve got a patch file that should take care of it attached.

    Looks like it only failed if there was more than 1 image manipulation possible.

    The fix should be in the next release- let me know if you run into any issues.

    Robin Sowell
    29th June, 2018 at 2:56pm
  • Thanks Robin, I’ll give the fix a go asap and let you know if there are any issues.

    Rob (bluedreamer)
    29th June, 2018 at 8:08pm
  • Just tested the fix and it works perfectly - thanks!

    Rob (bluedreamer)
    02nd July, 2018 at 1:33pm
  • Thanks for the confirmation!

    Robin Sowell
    02nd July, 2018 at 2:05pm

You must be signed in to comment on a bug report.

  • 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