WPIntell

Source evidence

Feature request

Upload Media Exif Date · support · 2021-03-23T01:17:00+00:00

complaintsentiment
mediumseverity
0.74relevance
2replies
Evidence linked to opportunitycommercial context

Proof Health

Open evidence

Commercial opportunities need traceable source links before they are treated as build-worthy.

4 / 23 rows with source links

17.4% of this page's analysis has direct source links.

0 build-decision rows missing links

0 rows here require auditable proof before promotion.

19 rows with no attached evidence

0 rows have source counts but still need direct links.

Conversation

support
shawfactor unresolved
Your plugin is great as is. But one feature I think t needs is that in the absence of a date in the exif data it should also look at the file name (many images have the date coded into the file name, e.g. 20191120_183022.jpg) Could you try extracting that date that way as well as a fallback? Alternatively if you do not want to add that feature could you please add a filter (maybe around line 85 of the main plugin class) so that I could add that logic myself without potentialy updating the image twice? Thanks feedback. That’s an interesting idea. I’ll try it. Please wait a while. Ver 1.04 Added filter. /** ================================================== * Sample snippet for Upload Media Exif Date * * The original filter hook('umed_postdate'), * Get the date and time from the file name when the date and time cannot be read from the EXIF. * * @param string $filename filename. */ function umed_postdate_from_filename( $filename ) { /* Sample for 20191120_183022.jpg */ $year = substr( $filename, 0, 4 ); $month = substr( $filename, 4, 2 ); $day = substr( $filename, 6, 2 ); $hour = substr( $filename, 9, 2 ); $minute = substr( $filename, 11, 2 ); $second = substr( $filename, 13, 2 ); $postdate = $year . '-' . $month . '-' . $day . ' ' . $hour . ':' . $minute . ':' . $second; return $postdate; } add_filter( 'umed_postdate', 'umed_postdate_from_filename', 10, 1 );

Comments

2 shown
Katsushi Kawamori 2021-03-23T02:15:00+00:00

Thanks feedback. That’s an interesting idea. I’ll try it. Please wait a while.

Katsushi Kawamori 2021-03-23T11:05:00+00:00

Ver 1.04 Added filter. /** ================================================== * Sample snippet for Upload Media Exif Date * * The original filter hook('umed_postdate'), * Get the date and time from the file name when the date and time cannot be read from the EXIF. * * @param string $filename filename. */ function umed_postdate_from_filename( $filename ) { /* Sample for 20191120_183022.jpg */ $year = substr( $filename, 0, 4 ); $month = substr( $filename, 4, 2 ); $day = substr( $filename, 6, 2 ); $hour = substr( $filename, 9, 2 ); $minute = substr( $filename, 11, 2 ); $second = substr( $filename, 13, 2 ); $postdate = $year . '-' . $month . '-' . $day . ' ' . $hour . ':' . $minute . ':' . $second; return $postdate; } add_filter( 'umed_postdate', 'umed_postdate_from_filename', 10, 1 );