Skip to content

Commit 72b002d

Browse files
authored
Merge pull request #589 from cchampet/fix_oiiowriterYResolution
oiiowriter: fix YResolution value in the output images
2 parents 448003b + 1b7dddd commit 72b002d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugins/image/io/OpenImageIO/src/writer/OpenImageIOWriterProcess.tcc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,7 @@ void OpenImageIOWriterProcess<View>::writeImage(View& src, const std::string& fi
548548
const time_t rawtime = time(0);
549549
const struct tm * timeinfo = localtime(&rawtime);
550550
char buffer[80];
551-
strftime(buffer, 80,"%d-%m-%Y %I:%M:%S", timeinfo);
551+
strftime(buffer, 80,"%Y:%m:%d %I:%M:%S", timeinfo);
552552
spec.attribute("DateTime", std::string(buffer));
553553

554554
if(! params._project.empty())
@@ -597,7 +597,7 @@ void OpenImageIOWriterProcess<View>::writeImage(View& src, const std::string& fi
597597
const float par = _plugin._clipSrc->getPixelAspectRatio();
598598
spec.attribute("PixelAspectRatio", par);
599599
spec.attribute("XResolution", par);
600-
spec.attribute("YResolution", 1);
600+
spec.attribute("YResolution", 1.0f);
601601

602602
if(!out->open(filepath, spec))
603603
{

0 commit comments

Comments
 (0)