mr_tinypng's People
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 ;)
Don't throw an Exception if the API limit is reached.
If the API limit is reached, an exception is thrown. This is not so nice on a productive website. Instead the images should be delivered without being shrinked. Perhaps only logging an error would be better.
submodule-icon still .gif
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)
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.