Quantcast
Channel: magick Issue Tracker Rss Feed
Viewing all 1011 articles
Browse latest View live

Commented Unassigned: Canon specific EXIF values [1424]

$
0
0
When i use comand line exiftool to dump all of the metadata from this JPG i see two specific fields i really want to get. They are in a profile listed by exiftool as "Canon"

Time Zone : -05:00
Time Zone City : New York

When i'm using Magic.net if i get all of the available profiles for the JPG which i'm told are "exif" and "xmp" and loop through all available tags of both i don't see these tags or values and i've got no other tags that will give me the timezone. I'm attaching the JPG and the exiftool's dump file. I'd really love a way to be able to get those two values out otherwise i have no way to know which timezone the date/time fields i'm pulling from EXIF are in.


Comments: I'm not very proud of what i am trying. But after a lot of frustration it's where i am at. I normally read what i consider the creation date/time/zone out of IPTC. Photo that my system sees have it there pretty uniformly because some software post processed the photo and set those values. The photos i'm having this problem with are tethered so to speak. In reality they are actually submitting via FTP live from the field via a wifi hotspot from a phone. Just giving more information than you need in case it's interesting. These special photos that come to me straight from a Canon 1DX mk ii have no IPTC at all and i have no issue reading what i need except for this f^!%$&! timezone. So... what i did here in this hack was to extract the date and time from the EXIF's DateTimeOriginal field and extract the timezone from that specific field you found in Maker's note that is the offset in minutes. With those two values in hand i form them into a string that looks like what i am used to seeing from IPTC and then run the same code i use there to turn it into a .Net DateTime and DateTimeOffset, then get the timezone information from my database based on the offset. I need to do all of this none sense because we push out all of of our photos in UTC and we have to convert it to that properly from whatever it was on the way in. // if the date and time and time zone was not found in IPTC then try to get it out of the EXIF // this should only be the case on photos recieved via teathered cameras as all post processing // done in software provides us proper IPTC values if (!setDate) { // EpixTimeZoneManager.IncomingPhotoDateFormat:: "20170214 090332-0600" // Exif.DateTimeOriginal::"2017:02:07 13:32:34" try { var exifDate = exifProfile.GetValue(ExifTag.DateTimeOriginal); var markersNote = exifProfile.GetValue(ExifTag.MakerNote); if (exifDate != null) { string exifDateString = exifDate.Value.ToString(); int offsetMinutes = 0; if (markersNote != null) offsetMinutes = BitConverter.ToInt32((byte[])markersNote.Value, 2850); TimeSpan offsetTS = TimeSpan.FromMinutes(offsetMinutes); string dateTimeOffsetString = exifDateString.Substring(0, 4); dateTimeOffsetString += exifDateString.Substring(5, 2); dateTimeOffsetString += exifDateString.Substring(8, 2); dateTimeOffsetString += " "; dateTimeOffsetString += exifDateString.Substring(11, 2); dateTimeOffsetString += exifDateString.Substring(14, 2); dateTimeOffsetString += exifDateString.Substring(17, 2); if (offsetMinutes >= 0) dateTimeOffsetString += "+"; dateTimeOffsetString += offsetTS.Hours.ToString("00"); dateTimeOffsetString += offsetTS.Minutes.ToString("00"); DateTime dateCreated = DateTime.UtcNow; if (DateTime.TryParseExact(dateTimeOffsetString, EpixTimeZoneManager.IncomingPhotoDateFormat, CultureInfo.InvariantCulture, DateTimeStyles.None, out dateCreated)) { metadataRecord.IPTCMetadata.DateCreated = dateCreated; } DateTimeOffset dateCreatedOffSet = DateTimeOffset.MinValue; if (DateTimeOffset.TryParseExact(dateTimeOffsetString, EpixTimeZoneManager.IncomingPhotoDateFormat, CultureInfo.InvariantCulture, DateTimeStyles.None, out dateCreatedOffSet)) { string dateCreatedTimeZone = EpixTimeZoneManager.GetTimeZoneBasedonOffset(offsetMinutes); if (!string.IsNullOrEmpty(dateCreatedTimeZone) && dateCreatedTimeZone.ToLower() != EpixTimeZoneManager.DefaultTimeZone.ToLower()) { metadataRecord.IPTCMetadata.DateCreatedTimeZone = dateCreatedTimeZone; metadataRecord.IPTCMetadata.DateCreatedOffsetMinutes = (double)offsetMinutes; } } } } catch (Exception exc) { logger.Warn(instanceLogFormatter.SetMessage("Error extracting creation time from EXIF: Exception: {0}", exc.Message).SetErrorLocation(exc.StackTrace, 0)); } }

Commented Unassigned: Canon specific EXIF values [1424]

$
0
0
When i use comand line exiftool to dump all of the metadata from this JPG i see two specific fields i really want to get. They are in a profile listed by exiftool as "Canon"

Time Zone : -05:00
Time Zone City : New York

When i'm using Magic.net if i get all of the available profiles for the JPG which i'm told are "exif" and "xmp" and loop through all available tags of both i don't see these tags or values and i've got no other tags that will give me the timezone. I'm attaching the JPG and the exiftool's dump file. I'd really love a way to be able to get those two values out otherwise i have no way to know which timezone the date/time fields i'm pulling from EXIF are in.


Comments: I am not sure if the offset (2850) will be the same everytime. I am doing something wrong in my code and I was hoping you would find why :) I have created an issue on GitHub that sort of addresses what is discussed here: https://github.com/dlemstra/Magick.NET/issues/40 Can I close this issue now?

Commented Unassigned: Canon specific EXIF values [1424]

$
0
0
When i use comand line exiftool to dump all of the metadata from this JPG i see two specific fields i really want to get. They are in a profile listed by exiftool as "Canon"

Time Zone : -05:00
Time Zone City : New York

When i'm using Magic.net if i get all of the available profiles for the JPG which i'm told are "exif" and "xmp" and loop through all available tags of both i don't see these tags or values and i've got no other tags that will give me the timezone. I'm attaching the JPG and the exiftool's dump file. I'd really love a way to be able to get those two values out otherwise i have no way to know which timezone the date/time fields i'm pulling from EXIF are in.


Comments: Yes you can close and thank you for your help, you gave me perfect info to solve my pressing issue. I know i didn't return the favor and figure anything out with the offset problem. I had one of my photographers change the timezone and other metadata and submit photos from the camera with all kinds of time zones and tested it and it's holding. I'm aware it's in-elegant and fragile and will probably break if they use a different camera model or upgrade the firmware or something, but i'll take it for now.

Closed Unassigned: Canon specific EXIF values [1424]

$
0
0
When i use comand line exiftool to dump all of the metadata from this JPG i see two specific fields i really want to get. They are in a profile listed by exiftool as "Canon"

Time Zone : -05:00
Time Zone City : New York

When i'm using Magic.net if i get all of the available profiles for the JPG which i'm told are "exif" and "xmp" and loop through all available tags of both i don't see these tags or values and i've got no other tags that will give me the timezone. I'm attaching the JPG and the exiftool's dump file. I'd really love a way to be able to get those two values out otherwise i have no way to know which timezone the date/time fields i'm pulling from EXIF are in.


Commented Unassigned: TIF convert to pdf colour change [1423]

$
0
0
I have been trying to convert a TIF file in Lab colorspace to PDF format, but the converted file has the colors changed.

When converting to PDF, I end up with a file like [Tiff-Lab-300DPI.tif_ImageConverter.pdf]..

Note: I also do a bit of resizing before converting to PDF.


Comments: I haven't found a cause for this yet. Will take another look in a couple weeks.

Commented Unassigned: TIF convert to pdf colour change [1423]

$
0
0
I have been trying to convert a TIF file in Lab colorspace to PDF format, but the converted file has the colors changed.

When converting to PDF, I end up with a file like [Tiff-Lab-300DPI.tif_ImageConverter.pdf]..

Note: I also do a bit of resizing before converting to PDF.


Comments: Hello, I had a similar issue while loading jpg image with CMYK colourspace. When I used them for compositing with other picture (RVB) colours seemed inverted... The TIFF image is saved in the LAB colourspace here so I presume it's the same problem. Also I found this: http://www.imagemagick.org/Usage/resize/#resize_colorspace Apparently we need to convert colourspace to linear RGB (from any other colourspace including sRGB which is gamma corrected) BEFORE doing the reisze... can you confirm?

Commented Unassigned: TIF convert to pdf colour change [1423]

$
0
0
I have been trying to convert a TIF file in Lab colorspace to PDF format, but the converted file has the colors changed.

When converting to PDF, I end up with a file like [Tiff-Lab-300DPI.tif_ImageConverter.pdf]..

Note: I also do a bit of resizing before converting to PDF.


Comments: We have made some changes to the PDF writer. Can you give it another try with the latest version of Magick.NET and test if that works for you?

Created Unassigned: TextKerning works only with negative values [1425]

$
0
0
Drawables TextKerning works only with negative values and shrink text. But positive values has no effect.

new Drawables()
.Font(fontName, FontStyleType.Any, action.FontWeight, FontStretch.Any)
.FillColor(color)
.FontPointSize(fontSize)
.TextAntialias(true)
.TextAlignment(action.Alignment)
.Text(positionInPixels.X, positionInPixels.Y, text)
.TextKerning(-5) // -5 works +5 has no effect (but regarding to magic documentation must work)
.Draw(canvas);

Commented Unassigned: TextKerning works only with negative values [1425]

$
0
0
Drawables TextKerning works only with negative values and shrink text. But positive values has no effect.

new Drawables()
.Font(fontName, FontStyleType.Any, action.FontWeight, FontStretch.Any)
.FillColor(color)
.FontPointSize(fontSize)
.TextAntialias(true)
.TextAlignment(action.Alignment)
.Text(positionInPixels.X, positionInPixels.Y, text)
.TextKerning(-5) // -5 works +5 has no effect (but regarding to magic documentation must work)
.Draw(canvas);
Comments: We fixed a bug in ImageMagick and your issue is resolved in the latest version of Magick.NET (7.0.5.800). Can you upgrade to this version and give it another try? Please let me know if this resolves your issue.

Commented Unassigned: TIF convert to pdf colour change [1423]

$
0
0
I have been trying to convert a TIF file in Lab colorspace to PDF format, but the converted file has the colors changed.

When converting to PDF, I end up with a file like [Tiff-Lab-300DPI.tif_ImageConverter.pdf]..

Note: I also do a bit of resizing before converting to PDF.


Comments: Hi, Just checked with the latest version 7.0.5.900 (https://github.com/dlemstra/Magick.NET/releases/tag/7.0.5.900) am still facing the same issue. For now, I have added a check to change to sRGB if the colorspace is Lab and it seems to be working for me at the moment. Although I would like to remove such special handling in the long run.

Commented Unassigned: Mono support is missing [1359]

$
0
0
If I understand well, because of the nature of accessing embedded dlls it is impossible to use the mono dllmap feature to use the library on mono.

If there would be a version which would ship the dlls as non-embedded files, it would be simple to map to the apropriate .so files on Linux.
Comments: Now working on adding Linux support in this issue: https://github.com/dlemstra/Magick.NET/issues/74. Got it working with Mono and .NET Core in a proof of concept project.
Viewing all 1011 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>