Facebook  Twitter 

SMFHacks.com

+-

SMFHacks.com

+- User Information

Welcome, Guest.
Please login or register.
 
 
 
Forgot your password?

+- Forum Stats

Members
Total Members: 4255
Latest: andreios
New This Month: 3
New This Week: 1
New Today: 0
Stats
Total Posts: 43259
Total Topics: 7518
Most Online Today: 177
Most Online Ever: 2482
(April 09, 2011, 07:02:45 pm)
Users Online
Members: 0
Guests: 188
Total: 188

Author Topic: 2 Major Outstanding Bugs  (Read 6151 times)

0 Members and 1 Guest are viewing this topic.

Offline marcbkk

  • Full Member
  • ***
  • Posts: 157
    • View Profile
2 Major Outstanding Bugs
« on: May 22, 2011, 03:05:37 pm »
There are 2 major bugs that have been outstanding since the release of 3.0 and so far no effort has been made to fix them:

1 - Date and Time on EXIF does not correspond with site clock date and time. Since my site is in SE Asia, and the Forum's standard clock is based on USA East Coast time, all the pictures on my site show in the EXIF data that the member shot the photo in the middle of the night. This is awful. The date and time from the EXIF data should reference the Forum's Overall Time Offset which Set under the Admin area of Features & Options - Basic Features. If it referenced the time offset then the date and time would show correctly according to the actual EXIF data rather than the time it was shot based upon a clock on the other side of the world.

2 - The Aperture data from the EXIF data still shows F-Stop numbers that don't even exist. It seems to take the Aperture EXIF data and do some strange calculation on it. If a picture was shot at F/5.6 it shows as F/7.  

I don't have much time left on my last year of updates that I purchased and I would appreciate having these 2 major bugs fixed so that I can finally get my Gallery working correctly. Forum members are constantly complaining about these 2 issues and it does not look good for me when I keep saying as the forum owner that fixes are coming and they never do.

Thanks.
« Last Edit: May 22, 2011, 03:23:31 pm by marcbkk »

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16436
    • View Profile
Re: 2 Major Outstanding Bugs
« Reply #1 on: May 22, 2011, 03:09:55 pm »
I wouldn't say no effort has been made have gone back and forth looking at different calculations for the FStop Number and it should work.
Will look into the time offset issue for #1 and see what I can find out.
I don't think I can fix #2 at this point i have spent a multiple hours on that issue and haven't found any other way that does it.
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline marcbkk

  • Full Member
  • ***
  • Posts: 157
    • View Profile
Re: 2 Major Outstanding Bugs
« Reply #2 on: May 22, 2011, 03:13:19 pm »
Thanks, but on #2 I once provided a link to all correct Aperture numbers so that a table could be written if necessary. Also, I am not even sure why it doesn't just take the Aperture number from the EXIF data itself and why a calculation needs to be done on it in the first place? What shows in the raw EXIF data for Aperture is correct already. Can't the data just be pulled across as it is to avoid errors? Thanks.  

Offline marcbkk

  • Full Member
  • ***
  • Posts: 157
    • View Profile
Re: 2 Major Outstanding Bugs
« Reply #3 on: May 22, 2011, 03:17:48 pm »
Here once again is the link to all possible aperture values:

http://www.photographyuncapped.com/useful-lists-of-iso-settings-f-stops-shutter-speeds-by-third-and-half/articles/2009/03/

I think you mentioned once that rounding was the issue and I can see f/1.8 possibly being shown at f/1.9 (still not even sure why it would need to be done that way though), but I can't see rounding being the problem when f/5.6 is displayed as f/7 and f/9 is displayed as f/22.6, etc.

If you have all possible Aperture values on that link, can't they just be added as a table so that rounding would not even be necessary at all?

Thanks
« Last Edit: May 22, 2011, 03:19:38 pm by marcbkk »

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16436
    • View Profile
Re: 2 Major Outstanding Bugs
« Reply #4 on: May 22, 2011, 03:29:42 pm »
On that page what values are used just wholes? Or the halves and thirds?
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline marcbkk

  • Full Member
  • ***
  • Posts: 157
    • View Profile
Re: 2 Major Outstanding Bugs
« Reply #5 on: May 22, 2011, 03:37:28 pm »
I am afraid both 1/2 and 1/3 stops are used. It depends on how the photographer has set his camera. The cameras all offer the option of 1/2 and 1/3 stops in between the whole full stops. So unfortunately all are needed depending on how the user has set his camera.

Offline marcbkk

  • Full Member
  • ***
  • Posts: 157
    • View Profile
Re: 2 Major Outstanding Bugs
« Reply #6 on: May 23, 2011, 03:08:18 am »
It seems the way you have the Aperture values coded now using pow it is basically taking the 1st number and raising it to the power of the 2nd number in the code.

In Gallery.php (line 10481) you have
Code:
$fstop = pow(2, $apex/2);

I don't know what $apex is, but it seems to be Aperture/F-stop values from the EXIF data.

So for example if F/5.6 is pow(2, 5.6/2) then 5.6/2 = 2.8
22.8 = 6.97, which then gets rounded to 7.

That is why F/5.6 in the EXIF data comes out all wrong at F/7 in your coding.

As I have said earlier, I believe getting rid of this whole rounding process and using powers for calculations is not a good approach. The result is always wrong. You could just create a table I think using all the final 1 stop, 1/2 stop and 1/3 stop aperture values and then you don't need the code to do any calculations and all the output from the EXIF data will transpose correctly.   

Cheers.

Offline marcbkk

  • Full Member
  • ***
  • Posts: 157
    • View Profile
Re: 2 Major Outstanding Bugs
« Reply #7 on: May 23, 2011, 04:44:44 am »
It just occurred to me that the reason why you created these formulas for the aperture values in the first place is perhaps you thought that some of these aperture values coming out of the EXIF data on some cameras was incorrect and needed to be fixed? As confirmed by that link I provided, there are all kinds of aperture values using 1/2 and 1/3 stops as well. So all those numbers are correct as is and don't need to be changed in some way. So maybe you can simply solve the problem by removing all the formulas and just pulling in the aperture values as it is in the photo's EXIF data.
« Last Edit: May 23, 2011, 04:46:41 am by marcbkk »

Offline SMFHacks

  • Administrator
  • Hero Member
  • *****
  • Posts: 16436
    • View Profile
Re: 2 Major Outstanding Bugs
« Reply #8 on: May 23, 2011, 10:10:37 pm »
Posted an update
3.0.20
!Fixed bug if caching enabled showed hidden pictures on index page blocks
!Using php date function instead of smf's internal time format to format exif original date time taken
!Removed the calculation for fstopnumber now using the internal computer value if present or empty using the original fstopnumber without the calculation
Get your Forum Ranked! at https://www.forumrankings.net - find out how your forum compares with others!

Like What I do? Support me at https://www.patreon.com/vbgamer45/

Offline marcbkk

  • Full Member
  • ***
  • Posts: 157
    • View Profile
Re: 2 Major Outstanding Bugs
« Reply #9 on: May 24, 2011, 11:59:44 am »
Bravo. Well Done! Both are working perfectly at this point. You are a champ!

 

Related Topics

  Subject / Started by Replies Last post
1 Replies
3816 Views
Last post January 17, 2008, 10:48:49 pm
by madeupmedia
7 Replies
8491 Views
Last post February 28, 2009, 05:03:58 pm
by SMFHacks
3 Replies
6412 Views
Last post March 25, 2009, 06:58:43 pm
by drhamad
5 Replies
6881 Views
Last post May 09, 2011, 07:06:34 pm
by SMFHacks
2 Replies
3142 Views
Last post June 21, 2012, 09:58:54 am
by shuban

+- Recent Topics

No thumbnails on new uploads by SMFHacks
March 27, 2024, 02:10:41 pm

Display the Contact Page for guests by SMFHacks
March 27, 2024, 10:55:43 am

is it possible to add support for odysee.com by fvlog19
March 21, 2024, 08:47:51 am

Request for admin notification by davejo
March 10, 2024, 01:31:59 am

I need help with torrent upload by Ineedsmfhelp
March 09, 2024, 10:01:13 pm

an idea for new mod (( content type with different display )) by SMFHacks
February 27, 2024, 01:36:27 pm

[Mod] RSS Feed Poster by SMFHacks
February 27, 2024, 11:57:18 am

find duplicate pictures by fvlog19
February 14, 2024, 02:22:40 pm

Error uploading video. by SMFHacks
February 08, 2024, 02:04:16 pm

Gallery icon as last added image by fvlog19
February 01, 2024, 01:04:56 pm

Powered by EzPortal