How to find out if a picture is hidden from an external app?

risto

Joined: 2003-09-08
Posts: 1
Posted: Mon, 2003-09-08 21:24

I'd like to copy the thumbnails for all _publicly_viewable_ images to another directory from my albums, however I'm having some trouble determining a picture's hidden attribute. I know the "hidden";"N" portion of the serialized photos.dat file holds the answer but I can't find a nice automated way to extract that information from the file.

I tried using Perl's serialize.pm, however that didn't seem to like unserialize()'ing photos.dat, and I'd like to stay away from a barrage of Perl regular expressions.

Does anyone know a way I can easily determine a pictures hidden attribute and pass it to my external Perl (or shell or whatever) script?

Apologies if an answer to this was buried in another thread, I searched but couldn't find it!

Thanks in advance.

 
beckett
beckett's picture

Joined: 2002-08-16
Posts: 3474
Posted: Fri, 2003-09-12 10:01

Well, to make sense of the .dat files, you can use:

php-deserialize.pl

It'll be up to you to grep out the necessary lines.

-Beckett (

)