[wp-trac] [WordPress Trac] #22259: Round image EXIF float data.
WordPress Trac
noreply at wordpress.org
Tue Oct 23 17:20:46 UTC 2012
#22259: Round image EXIF float data.
--------------------------+--------------------
Reporter: jcakec | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.5
Component: Media | Version: trunk
Severity: normal | Resolution:
Keywords: has-patch |
--------------------------+--------------------
Comment (by jcakec):
Replying to [comment:2 nacin]:
> We also round aperture already, so this makes sense. But is 4 the
maximum number of decimal places we'd ever have here? To keep existing
behavior, simply casting to a string should be sufficient, right?
Well, according to http://en.wikipedia.org/wiki/Shutter_speed the maximum
speed can be 1/16000 s, so that's 0.0000625, so 7 seems to be better value
than 4, but most of the images I've seen during my tests had 0.0004 as the
lowest value.
casting everything to string would be sufficient? yes it would be, but
would that be the better approach? I left that question to you guys, as
you're the experts. :)
--
Ticket URL: <http://core.trac.wordpress.org/ticket/22259#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list