Jump to content

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.


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/


  • Like 1

Share this post

Link to post
Share on other sites

@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!)


	$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


Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Similar Content

    • By Roberts R
      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!

    • By nabo
      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...