crop

crop a zoomed image in ImageView inside scrollView

若如初见. 提交于 2019-12-04 11:35:28
问题 I already do Lot of efforts from my Side. finally I need help. thanks Goal : 1) How I fit imageView inside ScrollView 2) How I crop a zoomed Image in inside scrollView. I have a imageView inside Scroll View. I wants crop image after zoomed which is display inside scrollview boundary. I cropped image already but it not exactly same which i wants. Here I set backgroundColor Black to my scrollView. And when I place imageView inside it, it's not fit. after zoom image inside scroll view is and

HTML5 inline SVG autocrop whitespace

放肆的年华 提交于 2019-12-04 11:30:42
问题 I've got an SVG diagram (complicated a little) that is generated using php and some data from the database. In that case, I can't predict the length of labels on the svg and anything. Diagram is generated on the fly, and data is always unknown. That is why, I'm starting with this: <svg class="chart" id="chart1" viewBox="0 0 1000 1000"> I'm setting huge viewbox (1000, 1000) and I start generating SVG somewhere in the middle of this viewbox. After that, some elements are near the left sometimes

Cropping Picture on Droid X sets resulting image as wallpaper

荒凉一梦 提交于 2019-12-04 10:51:29
I'm running into an issue with my program when trying to crop an image selected by the user from their gallery. The issue so far only appears when running on a Droid X, as running on the original moto Droid works fine. Basically the issue occurs as the cropping intent is being run. Once the user crops the photo and clicks the save button, it replaces the wallpaper on the main screen with the cropped image that was saved! It does not do this on the moto droid, or emulators. Below is the code for cropping and saving the picture to the SD card: @Override public void onActivityResult(int

angular-file-upload with ngImgCrop

落花浮王杯 提交于 2019-12-04 09:37:43
问题 I'm using (ngImgCrop) to crop an image and then upload the cropped image to server using (angular-file-upload). I can get the $dataURI from the "on-change" option in ngImgCrop. But I need a File instace to call $upload. How can I get the File instance of the cropped image in order to upload : $scope.upload = $upload.upload({ url: '/api/fileupload', file: [**file cropped here**] }).progress(function (evt) { // }).success(function (data, status, headers, config) { // }); 回答1: I guess you'll

Always Null returned after cropping a photo from a Uri in Android Lollipop?

别说谁变了你拦得住时间么 提交于 2019-12-04 09:32:35
I tried to crop an image from a Uri after taking a photo or picking a picture. And my codes are like these: public static void cropImage(Uri uri, Activity activity, int action_code) { Intent intent = new Intent("com.android.camera.action.CROP"); intent.setDataAndType(uri, "image/*"); intent.putExtra("crop", "true"); intent.putExtra("aspectX", 1); intent.putExtra("aspectY", 1); intent.putExtra("outputX", 600); intent.putExtra("outputY", 600); intent.putExtra("scale", true); intent.putExtra("return-data", true); if (intent.resolveActivity(activity.getPackageManager()) != null) { activity

Scale image until either X or Y is the same as the container and then crop the rest

你离开我真会死。 提交于 2019-12-04 08:36:54
I am loading images in multiple places where the site theme will have them displayed in different sizes. I experimented with the CSS properties and found that I could scale the image using the height and width parameters and crop the image using position:relative and overflow:hidden. What I want to do though is a combination of that. To scale the image down until the width is the width of the container element or the height is the height of the container element (which ever comes first). Then crop the rest. Thus the image should be in proportion and also fill the container, regardless of shape

Crop an image to square using percentages and max widths

无人久伴 提交于 2019-12-04 07:21:42
Working a responsive site, so I cannot use set widths. I need pictures to all crop to square. I cannot define the exact measurements because it also needs to have max-width:100% in order to make it a responsive image which adjusts it's sized relative to the container (which is relative to the width of the browser). I've seen a lot of solutions that suggest using background-image but this not possible, it must be an img tag. It also must work in IE8. Any ideas? I currently have: .views-field-field-photo img { width: 100%; height: auto; } <div class="field-content"> <img src="imagehere" > </div>

Detect face then autocrop pictures

寵の児 提交于 2019-12-04 07:21:05
问题 This question was migrated from Photography Stack Exchange because it can be answered on Stack Overflow. Migrated 7 years ago . I am trying to find an app that can detect faces in my pictures, make the detected face centered and crop 720 x 720 pixels of the picture. It is rather very time consuming & meticulous to edit around hundreds of pictures I plan to do that. I have tried doing this using python opencv mentioned here but I think it is outdated. I've also tried using this but it's also

How to crop image after taken from UIImagePicker Camera?

浪子不回头ぞ 提交于 2019-12-04 06:46:51
I'm trying to allow the user to take 16x9 aspect ratio images to look like they are nice HD photos. I'm using the cameraViewOverlay to overlay black bars on both ends, but when the image is taken, how do I crop the top and bottom without resizing or changing the scale of the image? Thanks. David Maymudes There are various posts around on how to scale/crop a UIImage you get back from the camera, like this one . It's a little trickier than you'd expect, because camera images are rotated, so you have to think about rotations even if you're just cropping. you can add "picker.imageEditing=YES" to

FFmpeg filter_complex concat gives only first input on crop

喜欢而已 提交于 2019-12-04 05:49:21
问题 I've encoutered problem when using concat and crop with multiple inputs and multiple outputs. Here's ffmpeg -y \ -i input_1.mp4 \ -i input_2.mp4 \ -i input_3.mp4 \ -i input_4.mp4 \ -filter_complex "[0:v][1:v][2:v][3:v]concat=n=4:v=1:a=0[v];\ [v]crop=3840:1080:960:0[center];\ [v]crop=960:1080:0:0[left];\ [v]crop=960:1080:4800:0[right]" \ -map "[center]" -c:v libx264 -preset faster -b:v 20000k -an -pix_fmt yuv420p -tune zerolatency -tune fastdecode "Output_Center.mp4" \ -map "[left]" -c:v