Skip to content

Fix output filename tagging with "_embed.jpg" taking 1 char from original name #2

@pablojr

Description

@pablojr

Right now if no output filename is provided, F5Android library defaults to replacing the original extension by "_embed.jpg" but while doing so, it also messes up last char of original name. Example:
IMG_0001.jpg becomes IMG_000_embed.jpg (last 1 is accidentally chopped)

Fix:
Please change line 60 of Embed.java into
String extension = this.file.getName().substring(this.file.getName().lastIndexOf(".") );

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions