Announcement

#1 2017-02-05 16:56:27

newts
Member
Newt Hampshire
2017-01-06
4

Update thumbnails after synchronize?

HI,

I update my site with rsync and then synchronize.  I rotated some source images and then synced them to galleries/ and synchronised the site.  The new image is correctly rotated but it didn't update the thumbnails.

Is there a way to synchronize when the source image is newer than than the thumbnails?

Thanks,

jv


Piwigo version Piwigo 2.8.6

Operating system: Linux
PHP: 5.6.29 (Show info) [2017-02-05 07:55:09]
MySQL: 5.6.25-log [2017-02-05 07:55:09]
Graphics Library: ImageMagick 6.6.9-7
Database
13528 photos (first photo added on Saturday 31 December 2016)
423 albums included 420 physical and 3 virtual (13530 associations)

Piwigo URL: http://gallery.newts.org

Offline

 

#2 2017-02-06 14:03:00

flop25
Piwigo Team
2006-07-06
7037

Re: Update thumbnails after synchronize?

Hello
Usually you can that from the Batch manager ; it checks if the picture has been changed but here I think it's just the rotation parameter in the database which has been changed. Did you use the plugin to rotate them?


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 

#3 2023-11-23 18:38:51

Oldwoman37
Member
2023-11-23
7

Re: Update thumbnails after synchronize?

I was in the process of importing many photos (>43K) and I noticed some were not rotated correctly. After adjusting the images directly, I used the synchronise option and it never reset the rotation value. After a bit of code diving, I found all I needed to do was change a single line of code in the current 13.8 branch:

In "admin/include/functions_metadata.php", change:

$update_fields = array('filesize', 'width', 'height');

(in the function get_sync_metadata_attributes) to:

$update_fields = array('filesize', 'width', 'height', 'rotation');

I should warn you that I don't know if this will won't work with IPTC attributes, but it does with EXIF attributes.

It solved my problem and I think it should be set in the latest branch since this is something I think most people would modify in their pictures.

Offline

 

#4 2023-11-23 18:40:57

Oldwoman37
Member
2023-11-23
7

Re: Update thumbnails after synchronize?

Oh, I should also mention that you need to clear all image caches on piwigo as well as your browser to ensure the new images are shown properly.

Offline

 

#5 2023-11-24 07:12:47

ddtddt
Piwigo Team
Quetigny - France
2007-07-27
7207

Re: Update thumbnails after synchronize?

Hi,

Oldwoman37 wrote:

Oh, I should also mention that you need to clear all image caches on piwigo as well as your browser to ensure the new images are shown properly.

when plugin activate your new tab on edit photo page with rotate


You love Piwigo so don't hesitate to participate, learn more on the "Contribute to Piwigo" page. If you don't have much time for contribution, you can also help the project with a donation.

Offline

 

#6 2023-11-24 17:28:30

Oldwoman37
Member
2023-11-23
7

Re: Update thumbnails after synchronize?

Right, but this is outside of piwigo. So if you happen to modify your images with some other tool, the synchronise feature will not re-read in the rotation attribute.

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact