Skip to content

ImageMagick generates improper output images #7

Closed

Description

@DigneshGoyal

i have used below command
convert.exe input.psd[0] -intent relative -sample 500x375 -quality 95 -auto-orient -strip output.jpg

file can be accessed fom below location

http://tinyurl.com/dignesh-com

Activity

  1. dlemstra commented on Jun 9, 2015

    @dlemstra
    Member

    Downsizing blends numerous pixels about the central pixel. If you remove the alpha channel you'll see the area around the headphones are highlighted. It looks like the highlights in some cases lighten up certain pixels to give the appearance of artifacts. Remove the alpha channel and you get reasonable results or if you include the alpha channel, linear light and the triangle filter returns similiar good results.

    This works good for the image:
    convert.exe input.psd[0] -colorspace RGB -filter Triangle -distort Resize 500x375 -colorspace sRGB -quality 95 -auto-orient -strip output.jpg

    or better yet remove the alpha channel before resizing:
    convert input.psd[0] -alpha off -colorspace RGB -resize 500x375 -colorspace sRGB -quality 95 -auto-orient -strip output.jpg

  2. DigneshGoyal commented on Jun 9, 2015

    @DigneshGoyal
    Author

    Thank you so much ..It worked ..Appreciate Your help on this.. :)

  3. added a commit that references this issue on Jun 28, 2020
  4. added a commit that references this issue on Jul 12, 2020
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