I want to take a screenshot of a entire (large on height) ScrollView.
I'm using Expo.takeSnapshotAsync to take the screenshot, but the returned image is truncated (croped) on height, hiding some part of ScrollView content.
This behavior could observed on both platforms, ios and android, using expo sdk v25.0.0.
Any tip is welcome.
Thanks!
Related
I am using react-native-image-crop-picker in my react naive android project to crop images. After setting freeStyleCropEnabled = true in my app I am able to do freestyle cropping but after a certain limit, I am not able to reduce the height of the frame to be cropped. Any solution regarding this?
You can only do free style cropping by setting freeStyleCropEnabled = true by using
react-native-image-crop-picker library for a certain extent. for more free style cropping use react-native-image-crop-tools library.
"freeStyleCropEnabled" is allowed for only Android.
You can use cropperToolbarTitle: 'Move and Scale' for the IOS.
I am using an object localizer with react native image picker to get coordinates of objects within an image. When I send the image by taking a photo with the android device the results I get are not accurate but when I take the screenshot of the photo and send it the results are almost perfect. Why might this be the case and how can I fix it?
The interesting thing is when I use the android studio emulator and send photos without taking screenshots of them the results are correct too. I have read that there are recommended image sizes for these operations however I could not find one for the object localizer.
Edit: I have found that when I take a screen shot the image resolution is equal to my devices width and height however when I take photo it uses cameras resolution.To give an example right now when I take a photo its resolution is 4032x2268 and resolution of said images screen shot is 1080x2220 which is the resolution I use for my android device.İs there any way to set cameras resolution to same as devices resolution?
Description
Upon loading an image (gif/jpg/webp/png) the image flashes the background color then loads the image. I expect that the image would just load and only have a placeholder when the image takes a while to load.
This problem is irrelevant to the size of the image (img size 10kb). Even if the image loads immediately the background color flashes.
Reproduction
Essentially just load an image and replace it with another image on the same scene.
I have a git project with the issue where it flashes red:
https://github.com/dnam50/gifTry.git
A gif demonstrating https://user-images.githubusercontent.com/28775204/32446378-5eb5926e-c311-11e7-9afe-6c689a4280af.gif
Additional Information
Fresco version: [1.5.0]
Platform version: [nexus 6 api 25] but has been tried on numerous android devices.
I am aware of White Flash inbetween Re-rendering Image Views which is the same issue but I have added a code example and gif example.
Thanks
In some applications like Sparrow Mail are set two different application icons. The default icon used in dock, in icon view e cover flow. Then a second smaller for list view, column view and title bar. How do you set the icon smaller? In file.plist there is only this.
Thanks.
Xcode includes the Icon Composer.app application which allows you to create .icns (Icon Suite) files which support multiple resolutions like shown in the following image:
As you can see in the image above, the Get Info panel’s “proxy” icon (in the titlebar) is using the small 16 x 16 icon, while the lower icon is using one of the larger sizes. If you are used to the single-size-only ways of UIImage, how an NSImage works in OS X may be confusing at first. In iOS, a UIImage represents a single bitmap image, and is basically a wrapper around a CoreGraphics CGImageRef. An NSImage in OS X works at a higher level, and as such, is quite different than a UIImage. An NSImage contains one or more specifically-sized NSImageReps, which are more analogous to a UIImage. In the screenshot you provided, both the window title bar button’s image and the NSImageView’s image are set to the same instance of an NSImage. When that image is asked to draw itself, however, the image is choosing 2 different NSImageReps based on the size requested. For more information on how this works, see Cocoa Drawing Guide: Image Basics - How an Image Representation is Chosen.
If you’re using the all-in-one Xcode.app app bundle, launch Xcode and choose Xcode > Open Developer Tool > Icon Composer. If you’re using the older style of the Xcode tools, with multiple folders, it’ll be at <Developer Tools>/Applications/Utilities/Icon Composer.app.
When i am capturing the screen shot using DDMS, the default image dimention is 480*200. Can we change this dimention?
i want the captured image in small size (dimention).
I know i can do it later with any photo editor. but i need to take several screen shots and changing each captured image will be an extra overhead for me, so looking for some direct solution.
Thanks.
While possibly not the answer you are looking for, you could capture them all in the default size and then use a batch image resizer like Irfanview (if you are in Windows) to resize everything on one shot.