• Resolved Bence Szalai

    (@grapestain)


    Hi!

    I’ve monkey patched the fail method of the ajax call on my server to this:

    
    }).fail(function(er){
        console.log( 'Your server is not powerful enough to process image ' + $.trim( $tr.find('.filename').text() ), er );
        $el.prop('checked', false);
          if( stopPNGtoJPG ){
            $('#transparency_status_message').html('<p><?php _e('Done') ?>.</p>');
            $('tbody tr input').prop('disabled', false);
          }else{
            delete_selected_pngs();
          }
    });
    

    This is beneficial for converting large amount of images, because I want the conversion to continue, just because one or two images fail. However in the plugin version the admin page need to be reloaded after a failure and also the selection have to be made again. Can take very long time and needs human overview during the process.

    Another suggestion is to add window.stopPNGtoJPG = false; to $('.convert-pngs').click(function(event) {, so the processing can be started again even after stopped without reloading the page.

    Thanks for the plugin indeed!

    • This topic was modified 2 years, 5 months ago by Bence Szalai.
  • The topic ‘Continue with remaining images on error’ is closed to new replies.