Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

uploading png image is increasing it's size than the original #1158

Closed
Kiransai-webonise opened this issue Jun 17, 2022 · 4 comments
Closed

Comments

@Kiransai-webonise
Copy link

$image = Image::make($img->path());
$image->save($img_name, 70);

Above piece of code is working fine for jpg images but when i upload png image its size is increasing. Am I doing anything wrong or it is an issue?

@N445
Copy link

N445 commented Aug 23, 2022

Same issue here
I'm uploading an png at 29.9MB

and I'm doing that

        $manager = new ImageManager([
            'driver' => 'imagick',
        ]);
        $img     = $manager->make($absolutePath);
        $img->save($absolutePath, 10);

and the final weight is 34,6MB

@basemkhirat
Copy link

same issue
version: 2.7.2

@LeonBuchner
Copy link

Error still exists...
My "minified" images have a bigger filesize even though I resized images bei 70%.
Any ideas how to fix?

@olivervogel
Copy link
Member

Duplicate of #632

@olivervogel olivervogel marked this as a duplicate of #632 Dec 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants