Jump to content
tonicastillo

Image meta description corrupted

Recommended Posts

Hi. Can I ask why this happens?

When I upload a jpg, the meta keywords and description of the file loses the accents and spanish symbols of the words.

Original image on the left, and the image generated by PW on resize on the right.

Imagen_4_7_19_13_03_pegada.thumb.jpg.bf0115c323d47064b12340f0589c37f1.jpg

This happens on resize. The uploaded file is ok.

How can I control which meta keep in the photo?

Thanks a lot (and sorry for my English)...

Share this post


Link to post
Share on other sites

Hi @tonicastillo,

I'm not sure, but it looks like something in your workflow is not utf-8 save. Can you send me one original (uploaded) image, where this happens? You can use PM or my email address, if you like: https://nogajski.de/contact/

Thanks.

  • Like 1

Share this post


Link to post
Share on other sites
Posted (edited)

@tonicastillo Many thanks for sending me your images.

I have tested with the original image on windows and on linux. My variations always had correct and 100% identical iptc metadata as the original has. (see my screenshot via PM).
It seems you have to control which part within your workflow chain is not properly set to UTF-8.

If you are using PW >= 3.0.132, you can use the following code to get direct debug output from images and variations:

    $image = $page->images->first();            // get the original image, (adapt to your needs!)

    //echo $image->getDebugInfo();              // THIS MUST BE OMMITTED, BECAUSE I FOUND SOME SORT OF "STATIC" BUG WITH THE NEW DEBUG-METHOD

	$options = ['forceNew' => true];
    $variation = $image->width(300, $options);  // create / recreate a (new) variation
    echo $variation->getDebugInfo($options);    // debug output

Parts you need to check can be the OS default charset and/or codepage, PWs php files, the Webserver DefaultCharset, etc.

In the modules directory you can find a useful set of inspection tools: https://modules.processwire.com/modules/process-diagnostics/ that assists in some parts.
It has diagnostics for PHP, Webserver, Filesystem, etc.

 

--------------------

PS: Normally it should be possible to query debugInfo for multiple images one after each other, but an optimization error has crept in

Edited by horst
  • Like 1

Share this post


Link to post
Share on other sites

Hi @horst.

The image debug info is everything ok. And the process-diagnostics plugin doesn't detect any problem.

I'll check my workflow chain

Thanks

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • By Roberts R
      Hello.
      I never though about it before but when I insert image into CKeditor field I don't get ALT tag filled from image that has it. Do I have to do it manualy for inserted image or Im doing something wrong?
       
    • By Mithlesh
      Changing it to null
    • By Mithlesh
      Hi, I have one URL - writerrelocations.com/contact-now/

      I have one issue where my header Image is appearing again after the contact form, for your reference:



      I have checked my processwire template section where have not added any Image field besides Header Image, attaching the same for the reference:




      PLEASE help me to get rid of the image below contact form

      Waiting for the swift response!

      Thanks
       
    • By nabo
      Hello
      I'm working on a project that use PW as backend CMS. PW serves formatted data of each page but the engine simply generates json from pagearray.
      I would like to set one or more variations on images, so I think it would be useful if there were a field to set possible variations... even with overrides!
×
×
  • Create New...