Giter Club home page Giter Club logo

wordpress-plugin's People

Contributors

camschull avatar davidgoodwin avatar emielvanlankveld avatar evertrotshuizen avatar frankvanbeem avatar jesperlofgren avatar makae avatar mattijsvandruenen avatar michielverkoijen avatar middagj avatar rkoopmans avatar rolftimmermans avatar shalomanov avatar skoreman avatar yektaturan 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  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  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  avatar  avatar  avatar  avatar  avatar

wordpress-plugin's Issues

[Feature request] Add WP CLI commands

Sometimes it's just easier to do things from CLI. Please consider adding WP CLI commands to:

  • optimize particular image (by attachment ID or URL ),
  • optimize particular image size (even if it's not marked as a size to be compressed).

If the feature is accepted, I'll submit PR (I need to clean up my code before I do it, so I don't want to invest time into something that might be rejected).

Re-optimization

Hi, It happen sometimes that plugin process stop with server errors (timeout or anyother).
In theese cases the plugin consider as optimized the image where error happen.
Is it possible to force optimization after first run?

I think it'll be usefull if a user choose to resize original images to re-process all images

Thank you in advance
Stefano

[Feature request] webp conversion

As the Tinify API now supports converting images to webp, it would be nice to also have that in the plugin.

As a first step converting the images would be sufficient, for my workflow simply generating webp files with every optimized file would be perfect and all that is needed. A checkbox in the settings: Generate webp and if checked here we go:

Lets say i use png images, a file called image.png should be optimized and saved as usual, after that we can simply add a conversion step call the API and generate image.png.webp

The serving of the file can be done via rewrite rules in .htaccess or nginx config as a first step.

That would be wonderful for all of us currently struggling with other optimization plugins which will never reach the quality of the tiny panda :-) I would be glad to also code parts of it, if needed.

[Feature Request] Optimize images out side of WordPress Media Upload

Hi I love TinyPNG/JPG but there are still 2 things that I am not 100% satisfied about.

  1. This plugin only optimizes the images uploaded via wordpress media tool. But there are still plenty images left to be optimized. Especially the images that comes within theme folder or plugin folder. In EWWW - there was an option to auto scan for these images and optimize them respectively and also an option to mention certain path (eg. your theme folder and plugin folder) path which the plugin will scan and optimize the images respectively. It would be great if you guys consider adding this option in this plugin.
  2. Another thing that I'm not completely happy about is that even though TinyPNG optimized the images properly, but still webpagetest.org sometimes shows that some images can be optimized further by 0.2kb to 0.3kb. It kind a feel bad.

So, I think the following task list will be proper for this feature request:

  • Allow specifying custom path within the plugin so that images from theme and plugin folders can be optimized too.
  • Make sure all images are 100% optimized to it's extreme level and nothing left to optimize.

EXIF data

Please provide an option to keep EXIF data untouched even when compressing original

[Feature request] Add Tiny_Plugin::compress() for general usage by devs

The plugin covers basic functionality. However, as a developer, I sometimes need to do custom tasks that aren't covered by the plugin (for example, I wrote WP CLI wrapper around the plugin). Compression is currently triggered during various events, but it seems there's no easy way to execute it manually from standalone PHP code. I propose to add Tiny_Plugin::compress(). Ideally, for consistency reasons, all other compression methods should rely on and call it:

  • Tiny_Plugin::compress_on_upload(),
  • Tiny_Plugin::compress_image_from_library(),
  • Tiny_Plugin::compress_image_for_bulk()

I can submit PR if this feature request is accepted.

PHP notice: Undefined index: file in ..\tiny-compress-images\src\class-tiny-image.php on line 48

In the plugin-created Compression column of my media library I'm getting the following notice for PDFs and some other custom file types:

Undefined index: file in ..\tiny-compress-images\src\class-tiny-image.php on line 48

I assumed that this issue occurs because parse_wp_metadata() isn't checking if this is of the allowed file types before moving forward (assuming of course the allowed file types will have 'file' set), it seems only to check that $this->wp_metadata be an array.

I thought of adding isset($this->wp_metadata['file']) to line 45 but I end up breaking has_been_compressed() among other things...

Option to bulk optimize images >=200px only

Currently there is only one option i.e. to bulk optimize the image. Can we add configuration to add image resolution (i.e > =1200px) or size (i.e >= 200kb) condition on it?

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.