anchor.diff:                      z_utils:assert(EndWidth  < ?MAX_WIDTH, image_too_wide),
                       z_utils:assert(EndHeight < ?MAX_HEIGHT, image_too_high),
                       Args1   = lists:flatten(z_utils:combine(32, CmdArgs)),
  -                    Cmd     = ["convert ", z_utils:os_filename(InFile++"[0]"), " ", Args1, " ", z_utils:os_filename(OutFile)],
  +                    ?DEBUG(Mime),
  +                    Cmd     = ["convert ", z_utils:os_filename(InFile++infile_suffix(Mime)), " ", Args1, " ", z_utils:os_filename(OutFile)],
                       file:delete(OutFile),
                       ok = filelib:ensure_dir(OutFile),
  +                    ?DEBUG(lists:flatten(Cmd)),
                       Result  = z_media_preview_server:exec(lists:flatten(Cmd), OutFile),
                       case filelib:is_regular(OutFile) of
                           true ->
  
positive.code:     {EndWidth, EndHeight, lists:reverse(Args)}.
  
  
  %% @doc Check if there is a blurring filter that prevents us from sharpening the resulting image
  is_blurred([]) -> false;
  is_blurred([{blur}|_]) -> true;
  
negative.code: filter2arg({make_image, "application/pdf"}, Width, Height) ->
      RArg = ["-resize ", integer_to_list(Width),$x,integer_to_list(Height)],
      {Width, Height, RArg};
  filter2arg({coalesce}, Width, Height) ->
      {Width, Height, "-coalesce"};
  filter2arg({make_image, _Mime}, Width, Height) ->
      {Width, Height, []};
  filter2arg({correct_orientation, Orientation}, Width, Height) ->
  