<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.2" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>whoismanu.com - Forum &#187; Topic: Updating Exif Informations</title>
		<link>http://www.whoismanu.com/forum/topic/updating-exif-informations</link>
		<description>Just another bbPress community</description>
		<language>en-US</language>
		<pubDate>Fri, 10 Feb 2012 23:52:39 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.2</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://www.whoismanu.com/forum/search.php</link>
		</textInput>
		<atom:link href="http://www.whoismanu.com/forum/rss/topic/updating-exif-informations" rel="self" type="application/rss+xml" />

		<item>
			<title>DeBing on "Updating Exif Informations"</title>
			<link>http://www.whoismanu.com/forum/topic/updating-exif-informations#post-787</link>
			<pubDate>Fri, 26 Feb 2010 16:46:19 +0000</pubDate>
			<dc:creator>DeBing</dc:creator>
			<guid isPermaLink="false">787@http://www.whoismanu.com/forum/</guid>
			<description>&#60;p&#62;Ok, after a teatime i got another idea for my security issue. A new .htaccess file for the thumbnail folder. It could be so easy, but i must really say.... didn't thought about it till i got the idea. So the file extension-problem is solved. $head-&#38;gt;brickwall xD&#60;/p&#62;
&#60;p&#62;Outstanding is the exif-information-update. But that doesn't have any priority.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>DeBing on "Updating Exif Informations"</title>
			<link>http://www.whoismanu.com/forum/topic/updating-exif-informations#post-785</link>
			<pubDate>Tue, 23 Feb 2010 05:57:45 +0000</pubDate>
			<dc:creator>DeBing</dc:creator>
			<guid isPermaLink="false">785@http://www.whoismanu.com/forum/</guid>
			<description>&#60;p&#62;Yeah, i got the error that he couldn't find the file (after the file extension modification). I thought the this-&#38;gt;_path would include the whole path + filename + extension, but ok. It's difficult to debug in wp-php-code or i just don't know how (yeah i have seen the &#34;Debug&#34; functions but don't know where the output is) xD. &#60;/p&#62;
&#60;p&#62;Because of my security reasons i have locked jpg-images and some other filetypes in a .htaccess file this works very good. But for a better linking of posts with the thumbnail in some forums (where the thumbnail should be shown), the thumbnail have to have an another extension then jpg so i thought of jpeg which is the same file type with just another file extension. Thats why i can't replace all jpg through jpeg images because the original and main have to be jpg and only the thumbnail (for security issues) jpeg.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>whoismanu on "Updating Exif Informations"</title>
			<link>http://www.whoismanu.com/forum/topic/updating-exif-informations#post-784</link>
			<pubDate>Mon, 22 Feb 2010 18:55:39 +0000</pubDate>
			<dc:creator>whoismanu</dc:creator>
			<guid isPermaLink="false">784@http://www.whoismanu.com/forum/</guid>
			<description>&#60;p&#62;1.) will have to try at these exif outputs one of these days&#60;/p&#62;
&#60;p&#62;2.) concerning filename extensions. you cannot just change them as you did. the reason becomes apparent when you look at how this function is called&#60;br /&#62;
&#60;code&#62;$this-&#38;gt;createThumb($oldOriginalPath, $this-&#38;gt;_path,...&#60;/code&#62;&#60;/p&#62;
&#60;p&#62;in your case you change $outFile locally in the function, which will have the file that is generated have your desired extension. however one level higher up, the _path field does not get changed and this one is used to create the post data. so in your case i guess that after your modification the filename on the server no longer matches what is put into the posts.&#60;/p&#62;
&#60;p&#62;i don't see an easy and simple way to change these extensions. it was simply not foreseen. why do you want to change them anyway?&#60;/p&#62;
&#60;p&#62;however, i think if you upload your files with .jpeg in the first place, they will always have this extension.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>DeBing on "Updating Exif Informations"</title>
			<link>http://www.whoismanu.com/forum/topic/updating-exif-informations#post-783</link>
			<pubDate>Thu, 18 Feb 2010 19:49:01 +0000</pubDate>
			<dc:creator>DeBing</dc:creator>
			<guid isPermaLink="false">783@http://www.whoismanu.com/forum/</guid>
			<description>&#60;p&#62;Hello,&#60;/p&#62;
&#60;p&#62;got some time now again. Ehm, did you try the whitebalance or flashlight output? Because i get the weird integers everytime when there should be a string to be displayed.&#60;/p&#62;
&#60;p&#62;Today i got another question xD i tried my logic but it failed: i wanted to change the fileextension of the thumbnail in the generator to jpeg. So i searched the code, where you generate the thumbnails (class/PhotoQImageSize.php) and added following lines into the createThumb()-function:&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;function createThumb($inFile, $outFile, $width = 0, $height = 0)
	{
		$outFile = substr($outFile, 0, -3);
		$outFile += &#38;quot;jpeg&#38;quot;;
...&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;But when i rebuild, i got an error and i can't var_dump on that place. I thought the outfile is the string of the filename + extension + dirname of the new thumbnail or am i wrong? Or is there an easier way to change all the thumbnail fileextension from jpg to jpeg and which is automatically updateing the posts like when you go under settings and &#34;rebuild all the publishd photos&#34; (i really need this change xD).
&#60;/p&#62;</description>
		</item>
		<item>
			<title>whoismanu on "Updating Exif Informations"</title>
			<link>http://www.whoismanu.com/forum/topic/updating-exif-informations#post-766</link>
			<pubDate>Wed, 03 Feb 2010 21:55:18 +0000</pubDate>
			<dc:creator>whoismanu</dc:creator>
			<guid isPermaLink="false">766@http://www.whoismanu.com/forum/</guid>
			<description>&#60;p&#62;finally got the chance to have a look at this.&#60;/p&#62;
&#60;p&#62;i did the following:&#60;/p&#62;
&#60;p&#62;1. replaced the _updateExif method with your version&#60;br /&#62;
2. published the photo that you linked to earlier on flickr&#60;br /&#62;
3. chose several exif tags in the photoq settings&#60;br /&#62;
4. save settings&#60;br /&#62;
5. activated and deactivated some more tags, saved settings again to trigger rebuilds&#60;/p&#62;
&#60;p&#62;however, i was not able to recreate the problem. am i missing something?
&#60;/p&#62;</description>
		</item>
		<item>
			<title>DeBing on "Updating Exif Informations"</title>
			<link>http://www.whoismanu.com/forum/topic/updating-exif-informations#post-754</link>
			<pubDate>Tue, 26 Jan 2010 22:48:55 +0000</pubDate>
			<dc:creator>DeBing</dc:creator>
			<guid isPermaLink="false">754@http://www.whoismanu.com/forum/</guid>
			<description>&#60;p&#62;Sorry, i testet it again and wanted to edit the last post, but i was to slow :-( so here again:&#60;/p&#62;
&#60;p&#62;The thing is, the pictures work fine on the first exif-readout (when first time published from photo queue) or when you replace an image.&#60;br /&#62;
So i changed the code of _updateExif to&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;//get new exif data
$this-&#38;gt;exif = PhotoQExif::readExif($this-&#38;gt;_path);
//update full exif in database
update_post_meta($this-&#38;gt;id, $this-&#38;gt;_exifFullFieldName, $this-&#38;gt;exif);

// this is the &#38;quot;original line&#38;quot; of updateExif and you have to do this here,
//because you can&#38;#39;t trigger a rebuild here like in the replaceImage function
//(otherwise you would get an infinity loop)
update_post_meta($this-&#38;gt;id, $this-&#38;gt;_exifFieldName, $this-&#38;gt;getNiceExif());&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;for updating all picture exifs everytime. The most exif-values where right, but some were &#34;wrong&#34;, so instead of a &#34;string&#34; there is only the integer value of it which have to loop to the switch cases for the right &#34;string&#34;. I think you could reproduce this in your programming enviroment by copying the code into your updateExif function. add or remove an exif information and save the settings so the pictures will be rebuild.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>DeBing on "Updating Exif Informations"</title>
			<link>http://www.whoismanu.com/forum/topic/updating-exif-informations#post-752</link>
			<pubDate>Tue, 26 Jan 2010 21:47:17 +0000</pubDate>
			<dc:creator>DeBing</dc:creator>
			<guid isPermaLink="false">752@http://www.whoismanu.com/forum/</guid>
			<description>&#60;p&#62;the funny thing is, its always the same pictures and i am using the same exifs. In the initial load, the integers were found and parsed correctly. With my edited method the integers will not be parsed correctly after adding Copyright as Exif-Info. Will test it some more.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>whoismanu on "Updating Exif Informations"</title>
			<link>http://www.whoismanu.com/forum/topic/updating-exif-informations#post-743</link>
			<pubDate>Sun, 24 Jan 2010 21:56:44 +0000</pubDate>
			<dc:creator>whoismanu</dc:creator>
			<guid isPermaLink="false">743@http://www.whoismanu.com/forum/</guid>
			<description>&#60;p&#62;1) unknown exif tags: possible that the exif library used doesn't know all the tags. can i have a sample image that has this problem so i can have a look and see whether i can do something. thanks.&#60;/p&#62;
&#60;p&#62;2) writing exif info to photos: this is unfortunately not possible right now. the reason is that the exif library photoq currently uses doesn't allow for writing exif data.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>DeBing on "Updating Exif Informations"</title>
			<link>http://www.whoismanu.com/forum/topic/updating-exif-informations#post-739</link>
			<pubDate>Fri, 22 Jan 2010 21:54:59 +0000</pubDate>
			<dc:creator>DeBing</dc:creator>
			<guid isPermaLink="false">739@http://www.whoismanu.com/forum/</guid>
			<description>&#60;p&#62;ok, so i was right, that $this-&#38;gt;_path is going to the path of the original file *lucky*. After a little bit code research i got it, but i wasn't so sure to test it so i asked you here. Now i commented it in my local file, that this is the path to the original file. Maybe you could implement an option to the settings, if the exifs should be readen and rewritten in the rebuild or not (sometimes helpfull). Thanks a lot will try it immediatly.&#60;/p&#62;
&#60;p&#62;EDIT:&#60;br /&#62;
Tested&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;$this-&#38;gt;exif = PhotoQExif::readExif($this-&#38;gt;_path);
//update full exif in database
update_post_meta($this-&#38;gt;id, $this-&#38;gt;_exifFullFieldName, $this-&#38;gt;exif);
update_post_meta($this-&#38;gt;id, $this-&#38;gt;_exifFieldName, $this-&#38;gt;getNiceExif());&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;two times, first with exifFullFieldName, second time only the last update_post_meta. But i got a problem: It really updates the exifs, but some field content in every post was shown as &#34;Unkown: someIntegers_and_not_this_text&#34;. So as if some of the exif-id's couldn't loop through the exif-switch methods for the &#34;right&#34; values. Got an idea how to fix that? (luckily i got a backup of the database before testing). &#60;/p&#62;
&#60;p&#62;And while testing it, i got another question: Is it possible to add the original exif information into the images of the other sizes (i'm just using the default main and thumbnail size), because this would be great, if someone &#34;downloads&#34; an image and there is my Copyright (in the exif) in it.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>whoismanu on "Updating Exif Informations"</title>
			<link>http://www.whoismanu.com/forum/topic/updating-exif-informations#post-735</link>
			<pubDate>Thu, 21 Jan 2010 23:34:37 +0000</pubDate>
			<dc:creator>whoismanu</dc:creator>
			<guid isPermaLink="false">735@http://www.whoismanu.com/forum/</guid>
			<description>&#60;p&#62;yes you are exactly right. exif info is only read out of a file when it is uploaded. so if you overwrite your files manually via ftp, it won't happen.&#60;/p&#62;
&#60;p&#62;you are also right about what you need to do to force an update, i.e.,&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;$this-&#38;gt;exif = PhotoQExif::readExif($this-&#38;gt;_path); //&#38;lt;-- the only problem
//update full exif in database
update_post_meta($this-&#38;gt;id, $this-&#38;gt;_exifFullFieldName, $this-&#38;gt;exif);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;$this-&#38;gt;_path is a string with the full absolute path to the original file. it is the same that you can also find in the photoQPath custom field.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>DeBing on "Updating Exif Informations"</title>
			<link>http://www.whoismanu.com/forum/topic/updating-exif-informations#post-728</link>
			<pubDate>Thu, 21 Jan 2010 22:46:23 +0000</pubDate>
			<dc:creator>DeBing</dc:creator>
			<guid isPermaLink="false">728@http://www.whoismanu.com/forum/</guid>
			<description>&#60;p&#62;Yeah, it's me again with the half of the solution (i think):&#60;/p&#62;
&#60;p&#62;about updateing the exif datas after publishing, i think it should be in the&#60;br /&#62;
&#34;updateExif&#34;-function in the \Classes\PhotoQPhoto.php file.&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;function _updateExif()
{
// now first everytime (maybe controlled by an option in the exif-section?)
//get new exif data
$this-&#38;gt;exif = PhotoQExif::readExif($this-&#38;gt;_path); //&#38;lt;-- the only problem
//update full exif in database
update_post_meta($this-&#38;gt;id, $this-&#38;gt;_exifFullFieldName, $this-&#38;gt;exif);

// the normal updateprocess
update_post_meta($this-&#38;gt;id, $this-&#38;gt;_exifFieldName, $this-&#38;gt;getNiceExif());
}&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;The only problem i have, i am not sure, if &#34;$this-&#38;gt;_path&#34; returns the string of the path of the original file, and i am afraid of testing it on my live-system (my test-system is still the database-photoq and i can't test it there because its very unstable xD). Maybe you can tell me how to find the original file.&#60;/p&#62;
&#60;p&#62;Best regards
&#60;/p&#62;</description>
		</item>
		<item>
			<title>DeBing on "Updating Exif Informations"</title>
			<link>http://www.whoismanu.com/forum/topic/updating-exif-informations#post-727</link>
			<pubDate>Thu, 21 Jan 2010 21:33:50 +0000</pubDate>
			<dc:creator>DeBing</dc:creator>
			<guid isPermaLink="false">727@http://www.whoismanu.com/forum/</guid>
			<description>&#60;p&#62;Another question: is there a way to put the &#34;freeform content&#34; into the description of the post and not into the metadata fields?&#60;/p&#62;
&#60;p&#62;Edit: the &#34;Include Exif data in post content&#34; does not copy the exif data into the post content. And i am using this option with the normal &#34;Photo link&#34;. The exif data will be shown but they aren't in the post content.&#60;br /&#62;
Fix of Edit: Sorry it was a Theme bug, fixed it in the theme.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>DeBing on "Updating Exif Informations"</title>
			<link>http://www.whoismanu.com/forum/topic/updating-exif-informations#post-721</link>
			<pubDate>Sun, 17 Jan 2010 18:20:31 +0000</pubDate>
			<dc:creator>DeBing</dc:creator>
			<guid isPermaLink="false">721@http://www.whoismanu.com/forum/</guid>
			<description>&#60;p&#62;Is it possible to update the exif infos of the pictures? Because i have update my pictures with Copyright infos and load it up (by ftp and override the old files) and rebuild some pictures. but that action didn't bring the result i wanted. And yes i have activated the Copyright Exif Info in the PhotoQ Options.&#60;/p&#62;
&#60;p&#62;Or does the exif is only written while first upload of the picture through PhotoQ?
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>

