• Members 1665 posts
    April 11, 2023, 12:29 a.m.

    Benji,

    It's nice to see you over here from Dpreview. I always love to see pictures of your lake with all of that blue sky. It's so beautiful as the sun sets.

    A few of us over here have been at DPRevived long enough, we have "learned already some of the ropes". If you have any questions, please let us know. Mocha showed me how to change the avatar, but clicking the left side of the mouse on the avatar on the upper right side. I just used a flying white egret from an image I had for now. That was easy to do instead of me drawing something.

    This thread titled "Weekly Photo Thread" was written as an introduction to what I was planning to do and as a few of us had discussed. We are now calling it "Show Your Pictures" instead of "Show Your Snaps" which I explained above.

  • Members 1665 posts
    April 11, 2023, 12:35 a.m.

    Mocha,

    I'm late at responding to your post about the two reply buttons. Thank you for clarifying that. I wasn't sure why there were two reply buttons, but what you write makes sense. I'll have to try it out.

  • Members 33 posts
    April 11, 2023, 5:08 p.m.

    I guess we’re all in learning mode here. If I “Upload File” and select a photo (using my iPhone), I seem to have to do a long press on the upload, once completed, and select Copy Link to make it appear on my post as per photo below that made it to my framing list. I’m not a Flickr guy so I have to resize my photos before uploading.

    IMG_0558.jpg

    Below I pasted a link to a OneDrive photo, this is another test as I haven’t been able to achieve that so far. I’m trying a different way.

    1drv.ms/i/s!Ag6iiPA11vYHhnnFVe0PrM_YRvre

    IMG_0558.jpg

    JPG, 962.4 KB, uploaded by benjilafouine on April 11, 2023.

  • Members 33 posts
    April 11, 2023, 5:10 p.m.

    The OneDrive link seems to be working but it’s not embedded into the post. Anyone succeeded aside from Flickr?

  • Members 1665 posts
    April 11, 2023, 5:46 p.m.

    Hi Benji,

    Yes, we are learning....

    I am loading the images from my computer. I push the "up arrow with a line" on the far right side. Then the image is shown below. At that location, I push "square with seven dots" to embed the photo. Then I add the selected EXIF data from the MS Word VBA program I wrote, using IrfanView's data that was copied to the clipboard.

    Crow at the Rose Garden, taken on April 8, 2023
    ResizedDPR2-25.jpg
    Model - Canon EOS Rebel T7i
    ExposureTime - 1/200 seconds
    FNumber - 9
    ISOSpeedRatings - 500
    FocalLength - 250 mm
    Lens Model - EF-S55-250mm f/4-5.6 IS STM

    ResizedDPR2-25.jpg

    JPG, 163.1 KB, uploaded by Digirame on April 11, 2023.

  • Members 33 posts
    April 11, 2023, 6:39 p.m.

    About posting the Exif information of each photo, would that be a strict requirement in your opinion or it would be left to the member to decide to upload it or not?

    I often mention my smartphone when it is the case but for the rest, I never really cared what was the Exif information of my photos. I do understand that some people may want to see this information but from my standpoint, when I open this weekly thread, it is to look at nice photos or post some. I rarely look at the exit information in this thread.

  • Members 718 posts
    April 11, 2023, 7:20 p.m.

    Benji,

    Us neophytes like to learn from better photographers like you.

    Steve Thomas

  • Members 718 posts
    April 11, 2023, 7:28 p.m.

    Dig,

    If you hit the little icon that looks like a mountain range, I think you can upload an image from a web address.

    I think.

    Steve Thomas

  • Members 33 posts
    April 11, 2023, 7:58 p.m.

    Did you actually succeed?

    If I paste the link I pasted above inside the dialog box presented to me when I click on the mountain pictogram, I get an invalid link. However, if I paste the link in the text of a new post, it works as an external link. Go figure.

  • Members 1665 posts
    April 11, 2023, 8:32 p.m.

    Benji,

    It's absolutely not a requirement to show key EXIF data, but it helps other photographers understand what settings a person used to take the picture. I like to see it. Often I see a blurry photo and sometimes it's a shutter speed issue or something to do with the depth of field (or other things too like a wrong focus). By having some selected EXIF data it can help evaluate the image better.

  • Members 1665 posts
    April 11, 2023, 8:45 p.m.

    Benji,

    Also I should add...as you know...when I discovered that IrfanView allowed us to copy the EXIF data to the clipboard, then I knew I could automate this, so the key EXIF data could be shown fast. I gave away my code that I wrote and posted it here. There are other ways to do it, but since this worked and I'm so busy, I haven't explored anything else. I know if I want to show other select EXIF data, all I have to do is change or add another number in the array. The hard work was done trying to learn the MS Word VBA syntax. When I showed recently 10 images with the key EXIF data, it was done quickly. All I had to do, was copy & paste it in after running my program.

  • Members 33 posts
    April 11, 2023, 11:28 p.m.

    I could try the code, I have all the software already. Where did you post it?

  • Members 1665 posts
    April 12, 2023, 1:08 a.m.

    Hi Benji,

    It was under the "Photo Test" thread. To make it easy, I'll copy and paste some instructions (of what I wrote for Dunlin).


    OK for the walkthrough....

    1) Download the free IrfanView software if you don't already have a copy.
    2) Use the software for a few sample images...resize if you would want.
    3) In IrfanView check out the EXIF data under Image, then Information.
    4) See the button to copy to the clipboard and push it.
    5) Open up a blank MS Word document, put the mouse cursor at the top of that document and push Ctrl+V to paste it in from the clipboard.
    6) In MS Word, push Alt+F11. That will bring you to the programming modules.
    7) Copy the program I wrote (start with the simple one) into a module.
    8) Run the program, by putting the mouse cursor any where in the code section and push the arrow in the ribbon above between the words "Run" or "Debug". Or push the F5 key.
    9) Copy & paste the selected EXIF data at the bottom of the MS Word document into your DPRevived post, next to your image.

    Now your version of IrfanView might be different than mine, so consider my instructions only for testing. Then we can fine tune it to match what you have. I wrote this from memory...hope I didn't mess up...but if I did I'll edit it and we'll go from there. At any of the steps I wrote, if you get stuck, let me know. Then I'll open up IrfanView or MS Word and look at more details and we'll get it to work.

    After this test is complete, you may want to select different EXIF data lines. That will be super easy. All we do is have to put that number in the array and loop it all the way through. I'll explain further later if you need that help. Again, that will be super easy. Let's just get this test to work first. :-)


    I don't normally program with MS Word VBA, but because of my programming background and some code from available sources like the Microsoft website, I was able to get something to work. There is little error protection built in. One time I was able to insert a space between the output, but today that failed. But it did affect the results. I just had to manually put in an extra space. You must know with code, there's always something. :-)

    If you copy & paste multiple EXIF data from each image, remember to start at the very top of the MS Word document. Then leave a space between the multiple sets of EXIF data. If you don't do that right, then the results will be not what you want. I only spent a few hours writing this code. If you find improvements, please let us know. It's fun automating tasks. I avoid doing manually boring routine tasks if I can. :-)

    This has some error protection, but it doesn't work all the time. I purposely tried to crash it, and it ignored what I wrote some of the time. Maybe you can figure that out.

    OK, here's the code for multiple images and then followed by the code for one image. Also, the underscored line means that it continues. It has been referred to as a "line-continuation character". You can read about that on the internet, if you are not familiar with it.


    Sub EXIFDataMultipleRevision2()

    Dim A As Integer: Dim B As Integer: Dim TheEnd As Integer: Dim EXIFLen As Integer: Dim vardata
    On Error GoTo TheLast

    '***************
    ' This code is written for multiple EXIF data sets for each image. * ' TheEnd is any additional image EXIF data beyond the first one. * ' For example, when TheEnd is two, this is for three sets of image EXIF data. * ' EXIFLen is the fixed number of EXIF data lines plus one; that is 103 + 1 (allowing for one space) * '* The EXIF data must be inserted in the MS Word document with one separating space to match the code. * '
    *****************

    TheEnd = 3 'This is for four images.
    EXIFLen = 104

    For A = 0 To TheEnd

    For B = 0 To 6
    vardata = Array(1 + EXIFLen * A, 3 + EXIFLen * A, 13 + EXIFLen * A, 14 + EXIFLen * A, 16 + EXIFLen * A, 27 + EXIFLen * A, 47 + EXIFLen * A)
    ActiveDocument.Paragraphs(vardata(B)).Range.Copy
    Set myRange = ActiveDocument.Range(Start:=ActiveDocument.Content.End - 1, End:=ActiveDocument.Content.End - 1)
    myRange.Paste
    

    Next B

    myRange.Paragraphs(1).LineUnitAfter = 1

    Next A
    Exit Sub
    TheLast:
    MsgBox "There is an error in this program, so this will end. The error is " & Err.Description & ".", vbInformation, "Programming Error"

    End Sub

    '***************

    Here's the code for only one image. This is easier to understand. Then you can see what I wrote above; it might make more sense that way.

    Sub EXIFData()

    Dim A As Integer
    Dim vardata
    vardata = Array(1, 3, 13, 14, 16, 27, 47)
    For A = 0 To 6
    ActiveDocument.Paragraphs(vardata(A)).Range.Copy
    Set myRange = ActiveDocument.Range _ (Start:=ActiveDocument.Content.End - 1, _ End:=ActiveDocument.Content.End - 1)
    myRange.Paste
    Next A

    End Sub

  • Members 1665 posts
    April 12, 2023, 1:31 a.m.

    Benji,

    The code works with the Canon T7i (800D) camera that I'm using. I tried to do it for the Canon M50 MKII and it failed. The code worked but it wrote down other lines of EXIF data that I did not want. I'm going to copying and paste these in MS Excel and line them up and see what is the issue.

    Let me see if it was a "user error" or something with the code. I'll know shortly.

    A little edit...yep...it's that the Canon M50 MKII EXIF data is shown differently. So that means we have to figure out what numbers to put in the array for each camera. That should be easy, but it's annoying that the EXIF data is not the same. So now I'll develop something for the Canon M50 MKII. I could do this in MS Excel, but I'm having fun doing this in MS Word since it's not normally what I do. :-)

  • Members 1665 posts
    April 12, 2023, 1:52 a.m.

    Benji,

    OK, with the EXIF data being different, this is what I found:

    The numbers in the array for the Canon T7i (800D) should be 1, 3, 13, 14, 16, 27 and 47.
    The numbers in the array for the Canon M50 MKII should be 1, 3, 13, 14, 16, 30 and 50.

    So for me, as this looped through, I would have to have it read the third line to determine which camera it was. Now since I normally don't program with MS Word VBA, I'm going to play with it and see if I can get something to work. I like things like this that are difficult. It's probably easy for some people, but since this is a new syntax for me, I consider it a challenge. :-)

    For you, if you are using your Canon 7D and your iPhone 13 (if that is what it is), then you would come up with your own numbers. :-) I hope you are with me on this, even if you aren't familiar with MS Word VBA either.

  • Members 643 posts
    April 12, 2023, 9:54 a.m.

    Ahh, so that's why it didn't work for me - using my Olympus camera.
    I think I'll just manually write it in the forum post, for now at least.

  • Members 33 posts
    April 12, 2023, 12:54 p.m.

    I’m not going to be able to test that until next week as I’m moving my mom, beginning today.

  • Members 1665 posts
    April 12, 2023, 5:56 p.m.

    Benji, OK...sounds good. I've been looking at the code again. I haven't yet figured a way to identify the third line yet (for the camera type). So I spent more time refreshing my memory on programming code and learning about the MS Word VBA syntax. I'm just dong this for fun. I haven't been writing programming code for a long time, so it's fun for me that way...to get back to doing this.

  • Members 1665 posts
    April 13, 2023, 5:57 p.m.

    Benji,

    I was able to write the code for this exercise using both cameras. It was extremely complicated. First, I tested it for four EXIF data sets and it worked perfectly. Then I tested it for another separate eight EXIF data sets (with a mixture of Canon T7i (800D) and Canon M50 MKII data) and the output was partially incorrect. So I copied & pasted the EXIF data in MS Excel to determine if the EXIF data has changed. What was strange, is that it did. One time the EXIF data for my Canon M50 MKII showed "Camera Temperature - 131 C" and another time it did not show that. It was an extra line that did not make sense, because a few lines up it showed "Camera Temperature (EOS only) - 21 C" in addition. The EXIF data was not consistent. When I reduced a number in the code by one to account for that discrepancy, then it worked perfectly for the eight EXIF data sets. It appears the code is correct, depending on the type of EXIF data that I use for this test. I wasn't expecting the EXIF data to be so variable. But a lot of it, is the same. I'll look at this some more later. If you need any help with this, please let me know.

    A little edit: Oh, I should let you know.... I was able to identify the third paragraph (line) because I found out it has a "hidden" character vbCr (or Chr(13)) at the end. That is a carriage return character. I had to go to an on-line programming forum to find out that answer.

  • Members 33 posts
    April 13, 2023, 11 p.m.

    I’m skilled at Word but never did via or macros on it. My specialty was IT infrastructure. Wrote automation scripts but never did programming.

  • Members 1665 posts
    April 14, 2023, 1:09 a.m.

    Well, the code I wrote for you all is available for you all to play around with, for a single camera. If you copy & paste the EXIF data into MS Word and you know the length of the data and the lines (paragraphs) that you want to copy...and they are consistently the same...it should be good. Just hack around with it and modify the simple code until you get the results you want.

    The problem arises when the EXIF data sets are different. I had fun writing this code for two cameras (with different EXIF data sets). It was very difficult. The cameras were always identified on the third line (paragraph) with the carriage return character. By knowing that, I could define the length of the EXIF data for each one and knew exactly where to pull out the data (as identified in the array).