WordPress version : 6.1
Plugins : Stateless, formidable forms
Both plugins are updated to latest .
]]>https://tendiendopuentes.org.ar/novedades/natacion-adaptada/
https://tendiendopuentes.org.ar/novedades/juegos-paralimpicos-tokio-202/
Could you help with this issue ?
Thanks
]]>When I try save the setting for google cloud on the localhost. I got this error message. It seems like the api GCSAuth from W2Cloud is get response 404. Please help.
Screenshot: https://ibb.co/zHq7YTz
Thanks
]]>we ‘re running our WordPress on a Google App Engine (flex environment, PHP 7.3.19). To connect the media library to cloud storage, we’ve been working with the Google Cloud Storage plugin (https://www.ads-software.com/plugins/gcs/).
Since we changed from standard to flex environment (or for another reason), images do not get converted anymore. I upload an image and in my storage bucket there is only that image listed. Other sizes don’t get get created.
Tried to use WP Stateless plugin instead (https://de.www.ads-software.com/plugins/wp-stateless/) – no difference.
PHP extension gd is activated.
I’ve been searching and trying for some hours now – no success. Any help would be very much appreciated!
Wolfram
]]>When accessing the SVG file from my browser I get:
This page contains the following errors:
error on line 1 at column 1: Encoding error
Below is a rendering of the page up to the first error.
However, if I edit the metadata manually from Google Cloud Storage interface, setting Content-Encoding to gzip, then I get the file correctly.
Have tried a few things, but can’t find a way to store them with the correct metadata, or to edit it from WordPress afterwards.
]]>Thank you for this great plugin. For a new site with a lot of media, I would like to try to use the WP-Stateless plugin which makes it possible to upload and serve WordPress media files from a Google Cloud Storage bucket saving server disk space.
Has anyone one been able to accomplish this while using the WebP Express plugin ?
Have tried most setting (including CDN friendly), as well as setting wp-content/upload url to my Google Cloud storage in config.json (line 124), but no luck.
On bulk upload test, WebP finds no media (since it’s stored in the bucket).
Any help is appreciated
Regards.
]]>I have task to deal with a new wp powered website. I need to recover images locally. Question is:
– What, exactly, happen when I trigger sync -> regenerate (bulk) on all images? Can this mess something with images or it just resize them again and copy them locally?
]]>It adds another “png” image as a watermark over the original one.
Moreover, it converts .jpg to .webp image. – makes a copy and then exec() the command “cwebp”, after that imagedestory() and finally wp_update_attachment_metadata($id, $meta).
I tried to enable “Dynamic Image Support” – Upload image thumbnails generated by your theme and plugins that do not register media objects with the media library.
But it uploads only the original one image within the sizes, but the modified original image with watermark, and also new created image same filename but with .webp extension is not uploaded.
The code is below:
// vodeni ?ig
function water_mark($meta, $id){
if(!isset($meta[‘sizes’])) {
return $meta[‘full’];
}
$upload_path = wp_upload_dir();
$path = $upload_path[‘basedir’];
// media upload direktorij
if(isset($path)){
$file = trailingslashit($upload_path[‘basedir’].’/’).$meta[‘file’];
//$target = trailingslashit($upload_path[‘basedir’].’/’).$meta[‘sizes’][‘slider-thumb’][‘file’];
$water_path = trailingslashit($upload_path[‘basedir’].’/’).’watermark.png’;
}else{
$file = trailingslashit($upload_path[‘path’]).$meta[‘file’];
//$target = trailingslashit($upload_path[‘path’]).$meta[‘sizes’][‘slider-thumb’][‘file’];
$water_path = trailingslashit($upload_path[‘path’]).’watermark.png’;
}
//list($istaknuta_w, $istaknuta_h, $istaknuta_type) = @getimagesize($target);
// dimenzije fotografije
list($orig_w, $orig_h, $orig_type) = @getimagesize($file);
if($orig_w!=’630′ && $orig_h!=’355′){
// u?itaj vodeni ?ig i dimenzije
$watermark = imagecreatefrompng($water_path);
list($wm_width, $wm_height, $wm_type) = @getimagesize($water_path);
// url fotografije
$image = wp_load_image($file);
// kopija i zamjena full veli?ine
imagecopy($image, $watermark, $orig_w – ($wm_width + 10), $orig_h – ($wm_height + 10), 0, 0, $wm_width, $wm_height);
// spremi
switch ($orig_type) {
//case IMAGETYPE_GIF:
//imagegif($image, $file );
//break;
case IMAGETYPE_PNG:
imagepng($image, $file );
// webp 2018
$slika_ekstenzija_png = preg_replace(‘/\\.[^.\\s]{3,4}$/’, ”, $file);
exec(“cwebp “.$file.” -o “.$slika_ekstenzija_png.”.webp”);
exec(“cwebp “.$slika_ekstenzija_png.”-630×355.png”.” -o “.$slika_ekstenzija_png.”-630×355.webp”);
break;
case IMAGETYPE_JPEG:
imagejpeg($image, $file, 80);
// webp 2018
$slika_ekstenzija_jpg = preg_replace(‘/\\.[^.\\s]{3,4}$/’, ”, $file);
exec(“cwebp “.$file.” -o “.$slika_ekstenzija_jpg.”.webp”);
// ak je webp prevelki, bri?i ga
exec(“cwebp “.$slika_ekstenzija_jpg.”-630×355.jpg”.” -o “.$slika_ekstenzija_jpg.”-630×355.webp”);
break;
}
imagedestroy($watermark);
imagedestroy($image);
wp_update_attachment_metadata($id, $meta);
return $meta;
}else{
switch ($orig_type) {
case IMAGETYPE_PNG:
$slika_ekstenzija_png = preg_replace(‘/\\.[^.\\s]{3,4}$/’, ”, $file);
exec(“cwebp “.$file.” -o “.$slika_ekstenzija_png.”-630×355.webp”);
break;
case IMAGETYPE_JPEG:
$slika_ekstenzija_jpg = preg_replace(‘/\\.[^.\\s]{3,4}$/’, ”, $file);
exec(“cwebp “.$file.” -o “.$slika_ekstenzija_jpg.”-630×355.webp”);
break;
}
// return
wp_update_attachment_metadata($id, $meta);
return $meta;
}
}
add_filter(‘wp_generate_attachment_metadata’,’water_mark’, 10, 2);
Thanks!
]]>