GithubHelp home page GithubHelp logo

mr_tinypng's People

Contributors

mhuber84 avatar scarbous avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

mr_tinypng's Issues

Reduction Bytes format

In BE module reduction bytes format are not so user friendly.
You use custom viewHelper for bytes formating with following labels
'labels' => array(' ', ' Ki', ' Mi', ' Gi', ' Ti', ' Pi', ' Ei', ' Zi', ' Yi')

and it's not so user friendly, I thing

You can use buildin viewHelper

You save: <b>{reduction -> f:Format.Bytes()}</b>

which is much more better. imho ;)

Performance

Hey
Did you make some performance changes? I have noticed page load time changes.

Page load without mr_tinypng ext. 3-4s
Page load with mr_tinypng ext 5-6s (All images on page already compressed)

I think approx. 2 seconds are huge impact on page load
I use latest version from git dev-master

Thanks

JS error in BE module

There is JS error in BE module

Uncaught Error: Bootstrap's JavaScript requires jQuery(anonymous function) Uncaught TypeError: jQuery is not a function

Try to use
TYPO3.jQuery

or include own jquery

Invalid source specified error

Hi
First of all great extension! I'm using tinypng but I was looking for something automatic for typo3

But sometimes I get following error:

Invalid source specified (HTTP 400/JSON validation error)
fireshot capture 46 - typo3 exception

I have to refresh page and than it works. But with caching no, so after error occur whould be great to clear caches.

It looks like it trys to compress unsupported image format (in this case svg). Or am I wrong?

Images from extensions

I tried mr_tinypng and it worked great, except for the page were the ke_search-module is located.
Following (shortened) output appears:

Invalid source specified (HTTP 400/JSON validation error) 
32 Tinify\Exception::create("Invalid source specified", "JSON validation error", 400)
31 Tinify\Client::request("post", "https://api.tinify.com/shrink", "{"error":"JSON validation error","message":"Invalid source specified"}")
...
28 Scarbous\MrTinypng\Service\TinypngService::shrinkImage("/home/www/typo3/typo3conf/ext/ke_search/res/img/attention.gif", "/home/www/typo3/typo3temp/attention.gif1592229915gif")
...

So the image of ke_search is the problem. Is it the format gif? Is it because it's an image of an extension?

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.