@ -45,27 +45,15 @@ namespace SixLabors.ImageSharp.Processing.Processors
/// <inheritdoc/>
void IImageProcessor < TPixel > . Execute ( )
{
try
{
this . BeforeImageApply ( ) ;
// TODO: Try-catch logic temporarily removed, put it back.
this . BeforeImageApply ( ) ;
foreach ( ImageFrame < TPixel > sourceFrame in this . Source . Frames )
{
this . Apply ( sourceFrame ) ;
}
this . AfterImageApply ( ) ;
}
#if DEBUG
catch ( Exception )
foreach ( ImageFrame < TPixel > sourceFrame in this . Source . Frames )
{
throw ;
#else
catch ( Exception ex )
{
throw new ImageProcessingException ( $"An error occurred when processing the image using {this.GetType().Name}. See the inner exception for more detail." , ex ) ;
#endif
this . Apply ( sourceFrame ) ;
}
this . AfterImageApply ( ) ;
}
/// <summary>