Skip to content

[Android] picked images end up with unexpected "_processed" suffix #33258

@MitchBomcanhao

Description

@MitchBomcanhao

Description

On dotnet 10, on an Android app, while picking a file which then gets modified by resizing or recompressing, the code is adding a "_processed" suffix to the file name, so each picked file becomes "originalfilename_processed.extension"

var processedFileName = System.IO.Path.GetFileNameWithoutExtension(imagePath) + "_processed" + outputExtension;

this is unexpected and feels like the byproduct of what looks like having copilot writing most of this code.
in other platforms I do not think there is any such modification to filenames.

would be good if this was removed as it introduces consistency issues and offers no obvious advantages.
In my case I am passing CompressionQuality = 89 so this always makes my images get the suffix on android which is really annoying.

Version with bug

10.0.20

Is this a regression from previous behavior?

Yes, this used to work in .NET MAUI

Last version that worked well

Unknown/Other

Affected platforms

Android

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions