Share image and text to messages/mail iOS - ios

i want to send image and text to messages and mail on iOS.
I try to do it with UIActivityViewController, but
The images change "minimum" size, even i change to size 8x8 px (the image was big with hudge squares).
Image was always sharing before text, even i send a sequence like "text, image, text, image" it always return - "image, image, text, text".
It is the other way to do that properly?
It is possible to that on MFMessageComposeViewController or in MFMailComposeViewController?
Thanks for any help.

Related

Image changes when blurred

Consider the following image.
As you know, WhatsApp shows blurred thumbnails of images in chats until they are downloaded. In this case, when I send the image to others by WhatsApp, the blurred thumbnail looks something like this:
(To reproduce the effect, try sending the original image to a friend and delete the original from Internal Storage/WhatsApp/Media/WhatsApp Images.)
The original and blurred images look completely different. How is this effect achieved?
I have noticed that the original image contains a grid of dots superimposed on it. Is the blurred image formed by those dots? Also, is it possible to merge any two images in this way?
The superimposed image is not blurred. That's another step. But you are right. The second image is in the grid. The abuse the fact that Whatsapp subsamples the image to create a preview.

iOS/iPhone app seems to add a color mask/color shade to my text

I have some colored images and same colored text on an iPhone App screen. The images show as expected, but when I use the same RGB color code on the text, it appears different on the finished app (mostly, a little darker). Why is xcode changing the color I tell it to use? How to get the text color to exactly match the color codes in the images.
Update: Here's a screenshot. I use the color picker from inside XCode, to pick the color from the image, so it shouldn't matter which color space I'm using (I'm using the same for both text and image), it still looks different.
It's very popular problem about different colors...
1) Try to use Digital color (native mac application)
2) Try to off text shadow, if you use it from your label.
3) And, all of its, is not a wright way to resolve this problem, if you want to color like on image you should correct them manually in you code or in interface builder.

How to Print Background Image Properly in Word 2003?

Issues:
- Background image not being printed in Word.
- Background image not printed at the right scale.
- Background image resolution is blurry.
This is a good solution if you are using Word 2003 and Illustrator/Photoshop. The finished document can be printed with other Word versions.
In illustrator/photoshop. Create a document at lettersize 8.5"x11".
Place your image/illustration and position it as you want.
Save for web and select png format.
Set width at 1650px (constrain proportion checked) and save.
Go to Word: Format/Background/Printed Watermark
Select picture water mark, browse and select the png file you just saved.
Set as 50% scale (this will make image sharper), and uncheck Washout. Apply and close.
You will now see your background image, and you can proceed with printing.

Airdrop: how do I avoid my thumbnail image having borders to left and right of image?

I'm experimenting with Airdrop and sending a thumbnail preview image.
The receiving device shows the preview thumbnail image in the receive confirm dialog, but often the image is downsized so that there is blank space in the Airdrop receive dialog to the left and right of the thumbnail. I want to get rid of this horizontal border.
The Airdrop receive dialog is 540 pixels wide. If I send a thumbnail that is 540 pixels wide and <= 400 pixels high, there is no horizontal border. If I send a square 540 x 540 image, I get the horizontal border. And yet when you send an image from Camera roll using Airdrop, no horizontal border appears around the thumbnail in the receive dialog, despite the thumbnail being >400 pixels high.
I would recommend using the UIActivityItemSource to provide metadata (such as the preview photo).
When the UIActivityViewController machinery requests the preview photo using the UIActivityItemSource's method activityViewController:thumbnailImageForActivityType:suggestedSize: it will pass in a CGSize that you should make sure your image fits inside. Make sure to adjust the dimensions of the image to fit the suggestedSize if you want it to fill up the full width of the alert. See the AirDrop sample code for an example of how to do this.

how to display image (containing text) with a good quality

I’m new in iOS and trying to make simple app with hierarchy of viewcontrollers. In the last one I wanna display scrollable image (which can also be zoomed at least x1,5), containing some small black and white picture and a piece of text. Initially I planned to make vector image, convert it to .jpg and use UIScrollView for displaying. But I found out that .jpg ( approx. 150 KB) didn’t provide a good quality for displaying text. As I have to use a lot of images I don’t want to increase image size. What is worse I also want it look good on retina display.
Can you recommend a way how to display image, containing text, with enough quality?
I mean that I don’t want the user see the separate pixels of letters in the text. Just like when you read text in your e-mail in iOS. Image size should be as small as possible. Planning physical size of image – approx. 5 cm x 15 cm.
Any help much appreciated
Thanks
To get good edges you would need to use png not jpg, which will make the image sizes much larger. I have a better suggestion, more code but better solution.
The answer is to not put the text into the image, but to draw it over it in real time.
You would:
associate text at some coordinate in the image (say a CGRect) with the image
create a uiimageview subclass that in the drawRect routine, after calling super, draws the text using the NSString categories on UIKit (which let you draw into a context)
To get going on this please create a small one vc project and get the subclass working there, then back port it to your primary project.

Resources