Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TIMOB-12189] set appropriate Blob mime-type when manipulating on images #3678

Merged
merged 3 commits into from Jan 8, 2013
Merged

[TIMOB-12189] set appropriate Blob mime-type when manipulating on images #3678

merged 3 commits into from Jan 8, 2013

Conversation

mstepanov
Copy link
Contributor

TIMOB-12189

Test case in JIRA.

@@ -106,7 +109,7 @@ -(id)initWithImage:(UIImage*)image_
{
image = [image_ retain];
type = TiBlobTypeImage;
mimetype = [@"image/jpeg" retain];
mimetype = [MIMETYPE_JPEG copy];
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if (UIImageAlpha hasAlpha:image] {
mimetype = [MIMETYPE_PNG copy];
}
else {
mimetype = [MIMETYPE_JPEG copy];
}

@vishalduggal
Copy link
Contributor

Code Reviewed. Mimetype can be automatically detected when initializing blob with image.

@vishalduggal
Copy link
Contributor

Code Reviewed. ACCEPTED

@vishalduggal
Copy link
Contributor

FR Passed. ACCEPTED

vishalduggal added a commit that referenced this pull request Jan 8, 2013
[TIMOB-12189] set appropriate Blob mime-type when manipulating on images
@vishalduggal vishalduggal merged commit d2454e0 into tidev:master Jan 8, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants