Please add the photo to your post and if possible the name.
See this question for more information on German WWI soldiers: Finding information on German soldiers from World War I and World War II?
The records from Württemberg and Baden are freely accessible online from the Landesarchiv Baden-Württemberg. Please see this introduction (in German): Soldaten im Ersten Weltkrieg Findmittel zu den Personalunterlagen des XIV. Armeekorps im Generallandesarchiv Karlsruhe jetzt online. You choose the relevant time period for the personnel rosters and search them by unit (not indexed).
His name is listed as part of Sächsische Verlustliste Nr. 378 (Saxon casulty list number 378). It seems he served in the military of the Kingdom of Saxony (maybe he moved to Saxony before the war).
According to the article Genealogische Quellen in den Militärbeständen des Hauptstaatsarchivs Dresden from the state archive, there are no surviving personnel roster for this era. For officers, however, they state:
Die gedruckten Ranglisten der sächsischen Armee von 1778 bis 1913 und die nachträglich erstellte Ehrenrangliste des deutschen Heeres 1914 bis 1918 enthalten die einzelnen Regimenter mit ihren Offizieren, aber auch Rang- und Nationallisten mit Dienstgraden, Geburtsort, Geburtsjahr und Laufbahn ebenso wie Informationen zur Geschichte der Regimenter, Uniformierung und Standorte. Die namentliche Erfassung von Offizieren begann bereits im Jahr 1632, die entsprechenden Listen befinden sich im Bestand 11246 Ranglisten.
(Printed ranking lists of the Saxon army from 1778 to 1913 and the "Ehrenrangliste" of the German army 1914 to 1918 contain individual regiments with their officers, but also ranking and other lists with ranks, place and date of birth, military career (…). The registration of officers by name started in 1632, these lists are kept in the inventory 11246 Ranglisten.)
An inquiry with the archive might be helpful, as I can't tell you what is available and how it can be accessed.
The ancestry collection Deutschland, militärische Wochen- und Verordnungsblätter, 1816-1942 might contain your Great-grandfathers name because of promotions.
If he served in the Baden military earlier (XIV Corps), the records are freely accessible online from the Landesarchiv Baden-Württemberg. Please see this introduction (in German): Soldaten im Ersten Weltkrieg Findmittel zu den Personalunterlagen des XIV. Armeekorps im Generallandesarchiv Karlsruhe jetzt online. You choose the relevant time period for the personnel rosters and search them by unit (not indexed).