Coder Social home page Coder Social logo

ddur / warp-imagick Goto Github PK

View Code? Open in Web Editor NEW
32.0 32.0 1.0 613 KB

Warp iMagick - Image Compressor - WordPress Plugin: Optimize Images on-site. No cloud-optimization-service. Convert to WebP - On-Upload, On-Regenerate, On Demand (v2.+). Set JPEG Quality and Sharpness. Set Big Image Threshold and Resize on Upload.

Home Page: https://warp-imagick.pagespeed.club/

License: GNU General Public License v2.0

PHP 87.79% JavaScript 9.30% CSS 2.90%
compress-images convert-webp image-compression image-compressor image-optimisation image-optimization image-optimizer optimize-images pagespeed php webp wordpress wordpress-plugin

warp-imagick's People

Contributors

ddur 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

Forkers

creativehassan

warp-imagick's Issues

Lib::debug: flooding debug.log & settings page

Is there a way to disable the Lib::debug: messages generated by the plugin? Considering that other plugins are being referenced by this plugin, it's REALLY generating a lot of unnecessary lines in the log.

The alerts are (and have been) flooding my debug.log, as well as the top of the plugin's Settings page.

'Lib::debug: Metadata update WITHIN "wp_create_image_subsizes" scope - $attachment_id: 10648
Lib::debug: Attachment (10648) metadata change detected
Lib::debug: Save metadata backup - $attachment_id: 10648
Lib::debug: Regenerate wp_create_image_subsizes( $file, _ ) does match [file] or [original_image]
Lib::debug: Post mime-type is not equal to JPEG or PNG image type:image/webp.
Lib::debug: Metadata update WITHIN "wp_create_image_subsizes" scope - $attachment_id: 10648
Lib::debug: Skip metadata backup [no-overwrite] - $attachment_id: 10648
Lib::debug: Metadata update WITHIN "wp_create_image_subsizes" scope - $attachment_id: 10648
Lib::debug: Skip metadata backup [no-overwrite] - $attachment_id: 10648
Lib::debug: Fixing $metadata sizes in context of: create
Lib::debug: Metadata update OUT-OF "wp_create_image_subsizes" scope - $attachment_id: 10648
Lib::debug: (Client) $remote_host: domain.local
Lib::debug: (Client) $uplink_host: warp-imagick.pagespeed.club
Lib::debug: (Client) $_local_host: domain.local
Lib::debug: (Client) Remote host ignored.'

image

Automatic Updates

whenever i try and register for automatic updates, over at https://warp-imagick.pagespeed.club/, i'm unable to reset my password. it says that it's sending a reset email, but none have ever arrived.

just an FYI, as your wordpress SMTP plugin probably isn't Authenticated.

add AVIF format support

Hi! Thanks for your awesome plugin!

Do you have plan to add AVIF format support at the future version?

(v 1.10.1) Lib::error: Regenerate wp_create_image_subsizes( _, $attachment_id ) argument mismatch!

I'm actually running into this error now, myself.

$ wp media regenerate --yes
Found 103 images to regenerate.
Lib::error: Regenerate wp_create_image_subsizes( _, $attachment_id ) argument mismatch!
Lib::error: Wrong editor class selected: WP_Image_Editor_Imagick
Lib::error: Function get_warp_editor() returned an error: Wrong editor class selected: WP_Image_Editor_Imagick1/103 Regenerated thumbnails for "cropped-AD_Logo_4color.png" (ID 2528).
Lib::error: Regenerate wp_create_image_subsizes( _, $attachment_id ) argument mismatch!
Lib::error: Wrong editor class selected: WP_Image_Editor_Imagick
Lib::error: Function get_warp_editor() returned an error: Wrong editor class selected: WP_Image_Editor_Imagick2/103 Regenerated thumbnails for "image" (ID 2527).
Lib::error: Regenerate wp_create_image_subsizes( _, $attachment_id ) argument mismatch!
Lib::error: Wrong editor class selected: WP_Image_Editor_Imagick
Lib::error: Function get_warp_editor() returned an error: Wrong editor class selected: WP_Image_Editor_Imagick```

I looked into updating:
``` nano +486 warp-imagick/classes/class-shared.php```

but found that line 486 already had:
```				return new \WP_Error( 'warp-imagick', $msg );```

also, this error came up a few times:
```Lib::error: Regenerate wp_create_image_subsizes( _, $attachment_id ) argument mismatch!
libpng warning: iCCP: known incorrect sRGB profile
libpng warning: iCCP: known incorrect sRGB profile```

i looked into the file, thinking that it might be one of our PDFs that we have within this media library... but it ended up being a pretty normal jpg image.

i tried installing a few additional png mods on the server, but that didn't seem to have any effect.

any suggestions?

...i almost forgot to mention, this is a WordOps webstack.  other than a few plugins, i'd like to believe that this install is quite identical to our other installs.

(v 1.10.1) Regenerate by WP CLI ERROR

Hi there,

Tried to regenerate media by WP CLI but not working. Here's the error message

Lib::error: Regenerate wp_create_image_subsizes( _, $attachment_id ) argument mismatch! 
Lib::error: Wrong editor class selected: WP_Image_Editor_GD 
PHP Fatal error:  Uncaught Error: Class 'ddur\Warp_iMagick\WP_Error' not found in /home/runcloud/webapps/test/wp-content/plugins/warp-imagick/classes/class-shared.php:486 
Stack trace: 
#0 /home/runcloud/webapps/test/wp-content/plugins/warp-imagick/classes/class-plugin.php(1227): ddur\Warp_iMagick\Shared::get_warp_editor() 
#1 /home/runcloud/webapps/test/wp-includes/class-wp-hook.php(308): ddur\Warp_iMagick\Plugin->on_intermediate_image_sizes_advanced_99_filter() 
#2 /home/runcloud/webapps/test/wp-includes/plugin.php(205): WP_Hook->apply_filters() 
#3 /home/runcloud/webapps/test/wp-admin/includes/image.php(375): apply_filters() 
#4 /home/runcloud/webapps/test/wp-admin/includes/image.php(496): wp_create_image_subsizes() 
#5 phar:///RunCloud/Packages/RunCloudAgent/bin/wp-cli/vendor/wp-cli/media-command/src/Media_Command.php(592): wp_generate_attachment_metadata() 
#6 phar:///RunCloud/Packages/RunCloudAgent/bin/wp-cli/vendor/wp-cli/media-command/src/Media_Command.php(162): Media_Command->pr in /home/runcloud/webapps/test/wp-content/plugins/warp-imagick/classes/class-shared.php on line 486 
Fatal error: Uncaught Error: Class 'ddur\Warp_iMagick\WP_Error' not found in /home/runcloud/webapps/test/wp-content/plugins/warp-imagick/classes/class-shared.php:486 
Stack trace: 
#0 /home/runcloud/webapps/test/wp-content/plugins/warp-imagick/classes/class-plugin.php(1227): ddur\Warp_iMagick\Shared::get_warp_editor() 
#1 /home/runcloud/webapps/test/wp-includes/class-wp-hook.php(308): ddur\Warp_iMagick\Plugin->on_intermediate_image_sizes_advanced_99_filter() 
#2 /home/runcloud/webapps/test/wp-includes/plugin.php(205): WP_Hook->apply_filters() 
#3 /home/runcloud/webapps/test/wp-admin/includes/image.php(375): apply_filters() 
#4 /home/runcloud/webapps/test/wp-admin/includes/image.php(496): wp_create_image_subsizes() 
#5 phar:///RunCloud/Packages/RunCloudAgent/bin/wp-cli/vendor/wp-cli/media-command/src/Media_Command.php(592): wp_generate_attachment_metadata() 
#6 phar:///RunCloud/Packages/RunCloudAgent/bin/wp-cli/vendor/wp-cli/media-command/src/Media_Command.php(162): Media_Command->pr in /home/runcloud/webapps/test/wp-content/plugins/warp-imagick/classes/class-shared.php on line 486 
Error: There has been a critical error on this website.Learn more about troubleshooting WordPress. There has been a critical error on this website.

It's working fine with regenerate thumbnails plugin.

Thanks!

Full size name change

Hi,

I use Warp-iMagick and Regenerate Thumbnails Bulk, but seems the full name of the images generated are saved like as from image1.jpg to xxx-1280x720.jpg, so if I run again bulk I get the following error for all images that are done before in bulk:

" The full-size image file cannot be found in your uploads directory at 2014/08/xxx-1280x720.jpg. Without it, new thumbnail images can't be generated."

The full image is still intact in wp-uploads but seems to be misleading data in the database.

I disable this plugin and run some bulk tests, and seems the bug come from this plugin, as without it installed all working correct, and no change to the full image path.

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.