Skip to content

ICC: es-XL is invalid culture identifier #304

@ToniaDemchuk

Description

@ToniaDemchuk

Prerequisites

  • I have written a descriptive issue title
  • I have verified that I am running the latest version of ImageSharp
  • I have verified if the problem exist in both DEBUG and RELEASE mode
  • I have searched open and closed issues to ensure it has not already been reported

Description

When tried to call Save after AutoOrient method for processing one of JFIF image, got exception:
System.Globalization.CultureNotFoundException: Culture is not supported. Parameter name: name es-XL is an invalid culture identifier.

Stack trace:

   at System.Globalization.CultureInfo..ctor(String name, Boolean useUserOverride)
   at ImageSharp.IccDataReader.ReadMultiLocalizedUnicodeTagDataEntry()
   at ImageSharp.IccDataReader.ReadTagDataEntry(IccTagTableEntry info)
   at ImageSharp.IccReader.ReadTagData(IccDataReader reader)
   at ImageSharp.IccReader.ReadTagData(Byte[] data)
   at ImageSharp.IccProfile.InitializeEntries()
   at ImageSharp.IccWriter.Write(IccProfile profile)
   at ImageSharp.Formats.JpegEncoderCore.WriteIccProfile(IccProfile iccProfile)
   at ImageSharp.Formats.JpegEncoderCore.WriteProfiles[TPixel](Image`1 image)
   at ImageSharp.Formats.JpegEncoderCore.Encode[TPixel](Image`1 image, Stream stream)
   at ImageSharp.Formats.JpegEncoder.Encode[TPixel](Image`1 image, Stream stream)
   at ImageSharp.Image`1.Save(Stream stream, IImageEncoder encoder)
   at ImageSharp.Image`1.Save(Stream stream, IImageFormat format)

Steps to Reproduce

System Configuration

  • ImageSharp version: 1.0.0-alpha9-00175
  • Environment (Operating system, version and so on): Windows 10, Azure web app on windows platform
  • .NET Framework version: NetCore 1.1

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions