PDA

View Full Version : How to remove spaces in exif values


Anonymous
04-21-2005, 07:12 PM
Hi. This is my exif result:

NIKON D70 1/640sec f 8 at 40 mm


How to I get it to this:

NIKON D70 1/640sec f8 at 40mm



Thanks.

Anonymous
04-21-2005, 07:19 PM
And why does Pixelpost try to view EXIF when there is no EXIF available. That breaks stuff! :(

Rob
04-21-2005, 07:32 PM
And why does Pixelpost try to view EXIF when there is no EXIF available. That breaks stuff! :(It doesn't break, you just have stuff in the template without values. If you upload pictures without EXIF a lot then just remove the EXIF stuff from your template. The templates are just meant to be a starting point ;)

Connie
04-21-2005, 08:00 PM
if you use the EXIF-Tags and not the lang_exif-tags in PP 1.4 you will have empty values if no EXIF exists
so that wil be no problem at all
the only problem is how you integrate the exif-information in your template

if you reserve a div in the middle with red background and there is not content than you have a problem :lol:

and the other question:

use exif-tag and define the presentation of the exif-value yourself
that's why we did it
you will find all tags in the pixelpost-taglist in the /doc-directory

Anonymous
04-21-2005, 09:36 PM
Hey. Thanks for the tip. I dont use LANG_xxx now.

This is my site. http://dan1el.net/photoblog/index.php?showimage=56
You can see the exif data under the picture. It is: NIKON D70 1/640sec f 8 40 mm


I still cannot remove those spaces between "f" and "8" to become "f8". Same goes for the focal.

raminia
04-21-2005, 09:40 PM
yeah agree I like it with removed space. i think its exifer problem.

Anonymous
04-21-2005, 09:41 PM
yeah agree I like it with removed space. i think its exifer problem.
I guess there's no hope, then. :cry:

Anonymous
04-21-2005, 09:51 PM
I fixed it!

$aperture = str_replace(" ","",$aperture);

$focal = str_replace(" ","",$focal);

One of my first PHP-snippets!

Anonymous
04-21-2005, 10:16 PM
If one want to add "at" to focal lenght, like "at 50mm", and yet still want to hide "at" when there is no focal lenght, try this:

$focal = (strlen($exif_result['SubIFD']['FocalLength']) > 0) ? 'at ' . str_replace(' ', '', $exif_result['SubIFD']['FocalLength']) : '';

Got it from a friend of mine.