Giter VIP home page Giter VIP logo

compress-image's People

Contributors

adaamz avatar ajithlalps avatar bardcrack avatar eihror avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

compress-image's Issues

Request: Release new version to fix #11

The issue #11, #13 has been fixed in the master branch. Also imagecreatefrompng() function fix done in the master brach.
Please release a new version so that everybody who uses this extension will get the new changes.

Doubt about file_url

Why do you add the prefix conteudo/ in the url of the images to be compressed?

$new_image = imagecreatefrompng('conteudo/'.$this->file_url);

Can't upload image morethan 5mb

I tried to upload image greater than 5mb, it throws an error Class 'Eihror\Compress\Exception' not found. I'm getting this because the compress class do not support file greater than 5mb.

So there are two issues actually.

  1. can't upload image greater than 5mb
  2. Exception class not found.

Framework: Laravel
version: 5.8
PHP: 7.2

Not working on the Server

Thanks for this library, its working fine in my local machine but when I upload the code on the server it was not compressing the image (not giving any error).

Here is my code:

$compressFile = realpath(APPPATH . '../assets/images/machineImages/'.$myImgcom->mim_name);
$compressImageName = 'myImageName';
$comporessQuality = 70;
$comporessDestination = realpath(APPPATH . '../assets/images/machineImages');
$image_compress = new Eihror\Compress\Compress($compressFile, $compressImageName, $comporessQuality, 9, $comporessDestination);
							$isComprs = $image_compress->compress_image();

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.