Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Chaining doesn't seem to retain original image #170

Closed
@G2G2G2G

Description

Code doesn't really matter since the example in the readme does the same thing, but you can see it produces an extremely dark version, other than making it really dark it seems to have the rest of the quality intact..
(does this with all images)

 $image = ImageResize::createFromString(base64_decode($image_data_base64));
 $image->crop(200, 200)
 ->save($destination . $time . '_s.jpg', IMAGETYPE_JPEG)
 ->resizeToLongSide(1300)
 ->save($destination . $time . '_b.jpg', IMAGETYPE_JPEG);

1

not using chaining at all produces fine images.

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

        AltStyle によって変換されたページ (->オリジナル) /