photo

Text (date) stamp on photo

随声附和 提交于 2021-02-07 20:52:04
问题 Is it possible merge text and photo taken from camera? I would like to stamp date and time on photo but I don't find anything on Google. 回答1: Use below code to achieve what you required. Bitmap src = BitmapFactory.decodeResource(getResources(), R.drawable.cuty); // the original file is cuty.jpg i added in resources Bitmap dest = Bitmap.createBitmap(src.getWidth(), src.getHeight(), Bitmap.Config.ARGB_8888); SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); String dateTime =

Text (date) stamp on photo

爱⌒轻易说出口 提交于 2021-02-07 20:48:32
问题 Is it possible merge text and photo taken from camera? I would like to stamp date and time on photo but I don't find anything on Google. 回答1: Use below code to achieve what you required. Bitmap src = BitmapFactory.decodeResource(getResources(), R.drawable.cuty); // the original file is cuty.jpg i added in resources Bitmap dest = Bitmap.createBitmap(src.getWidth(), src.getHeight(), Bitmap.Config.ARGB_8888); SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); String dateTime =

Text (date) stamp on photo

半世苍凉 提交于 2021-02-07 20:47:27
问题 Is it possible merge text and photo taken from camera? I would like to stamp date and time on photo but I don't find anything on Google. 回答1: Use below code to achieve what you required. Bitmap src = BitmapFactory.decodeResource(getResources(), R.drawable.cuty); // the original file is cuty.jpg i added in resources Bitmap dest = Bitmap.createBitmap(src.getWidth(), src.getHeight(), Bitmap.Config.ARGB_8888); SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); String dateTime =

IOS Safari URL UTI share sheet

陌路散爱 提交于 2021-01-27 07:17:25
问题 I am trying to pass the current URL from safari to my app using the safari share button and share sheet. I want this to go to my app and not have it be a share extension. From safari, the share sheet does not show my app. I have registered the following document types (UTI) without success: public.url public.file-url public.url-name My app does show up from a pdf document share using com.adobe.pdf without any issues. Any help sharing the URL from safari would be most appreciated. I am also

IOS Safari URL UTI share sheet

随声附和 提交于 2021-01-27 07:15:38
问题 I am trying to pass the current URL from safari to my app using the safari share button and share sheet. I want this to go to my app and not have it be a share extension. From safari, the share sheet does not show my app. I have registered the following document types (UTI) without success: public.url public.file-url public.url-name My app does show up from a pdf document share using com.adobe.pdf without any issues. Any help sharing the URL from safari would be most appreciated. I am also

How to efficiently retrieve expiration date for facebook photo URL and renew it before it expires?

℡╲_俬逩灬. 提交于 2020-12-30 09:36:49
问题 Main problem: Application caches URL's from facebook photo CDN The photos expires at some point My "technical" problem: Facebook CDN "expires" header doesn't seem to be reliable ( or i don't know how to deal with them ) Using CURL to retrieve expiration date: curl -i -X HEAD https://scontent-b.xx.fbcdn.net/hphotos-xap1/v/t1.0-9/q82/p320x320/10458607_4654638300864_4316534570262772059_n.jpg?oh=9d34386036754232b79c2208c1075def&oe=54BE4EE2 One minute before it returned: Mon, 05 Jan 2015 01:34:28

How to efficiently retrieve expiration date for facebook photo URL and renew it before it expires?

牧云@^-^@ 提交于 2020-12-30 09:36:28
问题 Main problem: Application caches URL's from facebook photo CDN The photos expires at some point My "technical" problem: Facebook CDN "expires" header doesn't seem to be reliable ( or i don't know how to deal with them ) Using CURL to retrieve expiration date: curl -i -X HEAD https://scontent-b.xx.fbcdn.net/hphotos-xap1/v/t1.0-9/q82/p320x320/10458607_4654638300864_4316534570262772059_n.jpg?oh=9d34386036754232b79c2208c1075def&oe=54BE4EE2 One minute before it returned: Mon, 05 Jan 2015 01:34:28

How to generate a collage image like shown

 ̄綄美尐妖づ 提交于 2020-12-05 11:56:25
问题 How to generate a collage image like show below. I would appreciate if you can let me know if there are any online tools or apps which do this. Thanks! 回答1: Image Magick is a free command line tool to process images and they have a feature called montage. Go take a look. ImageMagick® is a software suite to create, edit, compose, or convert bitmap images. It can read and write images in a variety of formats (over 200) including PNG, JPEG, JPEG-2000, GIF, TIFF, DPX, EXR, WebP, Postscript, PDF,