Skip to content

Cannot convert mng/jng images #8327

Closed
Closed

Description

@andreas-eriksson

ImageMagick version

7.1.2-2

Operating system

Windows

Operating system, version and so on

11

Description

A permission denied error occurs when trying to convert mng or jng images.

Steps to Reproduce

.\magick.exe "D:\Tmp\image.jng" "D:\Tmp\image.png"
.\magick.exe "D:\Tmp\image.mng" "D:\Tmp\image.png"

Error:
magick.exe: unable to open image 'C:/Users/USER~1/AppData/Local/Temp/magick-SvG2YZ3ZEy4WEiicPVt3L0RCjZJeo7nR': Permission denied @ error/blob.c/OpenBlob/3596.

Images

image.zip

Activity

  1. snibgo commented on Aug 28, 2025

    @snibgo

    I confirm the problem with IM v7.1.2-2.

    This worked fine in versions 7.1.1-20 and 7.1.1.38.

  2. dlemstra commented on Aug 28, 2025

    @dlemstra
    Member

    Thanks for reporting this. We recently made some changes to use more secure methods on Windows. It seems that it is no longer allowed to open the same file twice at the same time. I just pushed a patch that closes the file before opening it again. This issue will be resolved in the next release.

  3. andreas-eriksson commented on Sep 1, 2025

    @andreas-eriksson
    Author

    I have verified that this works in 7.1.2-3. Thanks for the quick resolution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions