Skip to content

Commit

Permalink
Merge pull request #589 from cchampet/fix_oiiowriterYResolution
Browse files Browse the repository at this point in the history
oiiowriter: fix  YResolution value in the output images
  • Loading branch information
cchampet authored Feb 20, 2017
2 parents 448003b + 1b7dddd commit 72b002d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -548,7 +548,7 @@ void OpenImageIOWriterProcess<View>::writeImage(View& src, const std::string& fi
const time_t rawtime = time(0);
const struct tm * timeinfo = localtime(&rawtime);
char buffer[80];
strftime(buffer, 80,"%d-%m-%Y %I:%M:%S", timeinfo);
strftime(buffer, 80,"%Y:%m:%d %I:%M:%S", timeinfo);
spec.attribute("DateTime", std::string(buffer));

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

if(!out->open(filepath, spec))
{
Expand Down

0 comments on commit 72b002d

Please sign in to comment.