Giter Club home page Giter Club logo

fork-cms-module-compression's People

Contributors

jeroendesloovere avatar jessedobbelaere avatar wouterverstuyf avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

fork-cms-module-compression's Issues

500 Internal Server Error

I was installing some themes from here and i got this message on the last 2:

Oops! An Error Occurred
The server returned a "500 Internal Server Error".
Something is broken. Please let us know what you were doing when this error occurred. We will fix it as soon as possible. Sorry for any inconvenience caused.

Compress images only once

I didn't see a mechanism to avoid compressing images multiple times. If you have a really big amount of images, this could cause performance problems. I would only compress the image if it isn't available in the compress_history table.

Compression keeps running

In the newest Fork version (5.8.0) the compression action keeps running, in the console you can see the "File read" is counting but none of the images are being compressed.
A time out is the result.

Already did some debugging and found 1 fix that helped a little bit but after compressing a few images the process again keeps running.

/Engine/TinyPNGApi.php - Line 108
if (substr($header, 0, 10) === 'Location: ') {

By dumping the $header it seems the "Location: ' is lower case 'location: '

Fork license

Great work, it looks like a great module. I'll add some (minor) issues though.

You use the Fork licence part, stating that your files are part of Fork CMS. That's not true and should not be included in your module. (I know that this is done wrong in a lot of modules, but thats no reason to do it wrong in yours ๐Ÿ˜‰ )

/*
 * This file is part of Fork CMS.
 *
 * For the full copyright and license information, please view the license
 * file that was distributed with this source code.
 */

Parent folders with images don't compress

I just noticed that when you select a child folder, the images in the parent folders don't get compressed. As you see here:

image

The parent folder contains 114 images and a "thumbnails" folder, but the module only compresses the thumbnail folder because it is selected.

I could use some input what would be the best way to handle this. Compress all images that are in one of the parent folders in the path (but not in a different subfolder)?

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.