Questions tagged [crop]
Crop refers to any issues relating to cropping images.
3,037
questions
-2
votes
1
answer
26
views
How to crop blank spaces from an image using CSS?
I imported an image to work with on a web project. Turned out that the content of the image is smaller than the image(kind of a blank space all around the content). So, I want to treat this image on ...
0
votes
1
answer
37
views
Take multiple photos and crop in Android Studio
I want to make that take multiple photos, crop each images and save only cropped images.
But my code only crops the last taken image, so I just get the same images.
I want to know what's the problem. ...
0
votes
2
answers
45
views
imagemagick: crop one image to four not equal size parts, but but keep original canvas size and paint background transparent
I have a 1920X1920 ratio image like below:
I want to crop this original image so that it is divided into four parts.
In the end it has the effect of forming four pictures, each of which is the ...
0
votes
1
answer
13
views
Flutter: Image resizes weirdly
I have an app with a feature that allows users to upload images, and later these images are used at various points through the app. I use imagePicker to get the images, with the following method:
...
1
vote
0
answers
35
views
How to crop image on the detected houghlines?
I am developing a book spine detection solution. For that I am trying to crop the image using the hough lines detected. However I am stuck at this phase. Here's the code which I am using to detect the ...
0
votes
0
answers
21
views
How to keep surrounding content of cropped image if minimum size would not be met using opencv2?
We're using some code like this to crop images to just the subject's faces - but the output images are sometimes too small for their intended use.
For example, we need output images to be 600x600 ...
0
votes
3
answers
190
views
Fast crop .png images in Delphi
I don't know what to do here anymore, so I hope that somebody can help me.
I'm using Delphi 10.4 and Windows 10.
Basically, my problem is that cutting a part of the .png image with transparent ...
0
votes
1
answer
28
views
How to successively Crop THEN add multiple boxblur's to a video with ffmpeg?
I need to programmatically crop a video and then add ffmpeg boxblur to multiple regions of the cropped video.
(Once the 'croppedAndBoxblurred' video is completed, I then need to read the image file in ...
0
votes
1
answer
38
views
Cryptic `ffmpeg` + Python error: `Cannot find a matching stream for unlabeled input pad 0 on filter Parsed_crop_1`
I want to use ffmpeg with Python in a Jupyter notebook to create a video from 2000 PNG image files generated by matplotlib. I'm on a Windows 7 machine.
The frames are very narrow and high, so I'd like ...
1
vote
2
answers
52
views
how to show selected image in alert dialog?
I want to implement that after clicking upload button it will pick image from gallery. After picking image then open Image cropper screen lastly cropped image will show in alert dialog. But here ...
1
vote
1
answer
37
views
Why is the cropped image file size larger and with PNG compression than the original source image which began as JPG compression when using cropperJS?
I am using cropper.js in my JavaScript/Django project. I got it working but I am finding that the cropped image file sizes are much larger than the source images, by like 10 times.
It appears the ...
0
votes
0
answers
20
views
gallery pick then crop the photo gives my blank image
I'm trying to follow the example of @bigant02 on Can not resolve com.android.camera.action.CROP in android 11 for first time app is installed (not enough reputation to post there) but, if I can pick ...
0
votes
0
answers
29
views
Remove Black Border and Extra White Space From Scanned Images Using Python and Skew / Straighten Image After Crop
I am learning Python and using its libraries/packages. I have around 1,000 images that I want to auto-crop. Some photos were cropped using another script. I am writing a new script that helps me to ...
0
votes
1
answer
26
views
how to crop left side of image in R
I used superheat to make a plot and I want to remove the waste on the left. I tried to save with ggsave and play with the width/height but it is centered so I lose the borders and cant choose to crop ...
1
vote
1
answer
72
views
Image cropper with compose
I'm trying to implement simple image cropper with compose.
The overlay can be resized and drag over the image.
The problem is, it can be dragged out of the image and out of screen too.
How to set ...
0
votes
0
answers
25
views
improve image quality of cropped image c#
i created a windows form c# application. It has feature to crop image. After cropping image. it show preview in other picturebox. My problem is the cropping place little bit blur in picture box. .Here ...
1
vote
0
answers
35
views
Finding a image that contains a cropped image
I have a big database of pictures (say, 1 million 512x512px images) and I want to do the following query in a fast way:
Given a cropped image, find an image from the database that contains it.
(The ...
1
vote
1
answer
53
views
Crop bounding boxes from React Native Camera
I have a react native application which uses react native camera to detect the faces and do some process on that. So, when the face is detected I am showing bounding boxes over the camera and now I ...
0
votes
1
answer
48
views
Is there a way to draw pieces of the image on 2d canvas without transparent parts?
I would like to draw this image on canvas without the transparent parts. The principle of my rendering is that I crop small images from a large image using the createImageBitmap method and store them ...
0
votes
0
answers
26
views
flutter :can i make the input file & the output file the same in ffmpeg command?
I am using this command for applying a crop operation on a video stored on my internal storage $x is the location of the video , I do not want a new output file to be created, i just want the cropped ...
0
votes
1
answer
45
views
How to zoom crop image in selected area
I want to crop image from selected area this is the image area i want to crop
this is the result i try to crop
the image i crop is not like in the crop area.
i use scrollview to zoom and pan the ...
0
votes
0
answers
69
views
smartcrop.js - Why does the code after console.log(SmartCrop) not work?
I'm trying to crop an image using smartcrop.js but the code after console.log(SmartCrop) doesn't do anything The image is loaded from an AWS Bucket.
<img id="profile-photo" src="...
-1
votes
1
answer
23
views
How do I get an image to crop itself rather than scaling down when I change the size of the browser?
I currently have an image that I want the center to stay the same size and fill the section. When the browser is at a large pixel-width, the center of the image is positioned perfectly. However, when ...
0
votes
0
answers
52
views
How can I use crop functionality in jet compose using registerForActivityResult?
I tried many solution but I want programmatically Answer.
Make sure I don't want to crop from compose in build function instead I want to select and crop image and then I want that URI.
1
vote
0
answers
51
views
Clone jpg without losing quality in C#
Im trying to take an input from a webcam and only want the centre of the image (to passport size image).
I have a Picturebox with the webcam stream which I have set SizeMode to CentreImage. I then ...
1
vote
0
answers
112
views
How to create modal with easy-crop for form uploading in react
I am trying to use react-easy-crop to crop an image and then upload it to an Django rest api through a form. I am new to react and the tutorials I have seen only show for one image while I want to ...
-1
votes
2
answers
25
views
Crop Images in Flexbox Div Assembly that Keeps a Browser Height Ratio
For the desktop landing page, I want this composition of images to maintain it's height in relation to the browser height (75vh), otherwise this landing collage will become too horizontal/skinny as ...
0
votes
0
answers
50
views
How can I extract images from image
you can see in this image 2 parts are selected I want to save those selected parts as a 2 new images, this is the main purpose of this extracter it extract images from image
See this image
can I build ...
0
votes
0
answers
19
views
How to display image bit bigger in modal to crop using crop js
I'm trying to implement image cropping mechanism using CropJs. When user upload an image, it should open into popup and there should be a crop button. Here is the code
<input type="file" ...
0
votes
1
answer
23
views
Wordpress Cropped Thumbnails Not Showing
I'm trying to display custom cropped thumbnails in Wordpress.
Here is my code:
add_image_size('about-us-slider-image', 610, 820, true);
And in the front:
echo wp_get_attachment_image_url($imgID, '...
0
votes
1
answer
170
views
'CroppedFile?' can't be assigned to the parameter type 'File', Flutter
After using the Image Cropper plugin in flutter, I want to convert the image to type File to be able to display it in the next screen. I am unable to figure a way to display the Cropped Image. Can I ...
0
votes
0
answers
70
views
how to display large imshow window with scrollbar (OpenCV)
I have been trying several ways to display a very large image with a scrollbar, but I can't
I need to display those scrollbar because if I resize the image to fit to my window, the image is so blurry ...
1
vote
0
answers
86
views
How to compress an image after cropping using js cropper?
Firstly, I take input of an image file through an HTML input type file. Then I open the image in a modal form and crop the image using the Cropper js plugin.
And now I want to compress my crop image.
...
1
vote
0
answers
55
views
R Raster: Why do the cropped GeoTIFF rasters have different values than the original rasters (the values are rounded)?
I have an interesting problem with the crop function. When I crop a stack of my rasters, the resulting files have different values from the original files - values are rounded. Interestingly, when I ...
0
votes
0
answers
20
views
How to restore whole image from cropped jpg file?
I have jpg file which is cropped for sure from original file.
In osx system I can see small thumbnail preview with whole image.
My question is: is jpg format allow to store whole image, and ...
0
votes
1
answer
119
views
In react-image-crop npm package, onImageLoaded is not working? How can I set url of an image as always I get null, due to not working of onImageLoaded
I want to add crop image functionality to my project. So for that, I am using the react-image-crop npm package. I read the documentation and write code but still, I am getting an error. When I select ...
0
votes
0
answers
76
views
unable to find an inherited method for function ‘proj4string’ for signature ‘"sfc_POLYGON"’
I'm facing the task of cropping data to a polygon boundary. Basically the same as in Clipping raster using shapefile in R, but keeping the geometry of the shapefile .
I try it the same as proposed in ...
-1
votes
1
answer
142
views
Crop a rectangle with coordinates relative to a rotated image in HTML Canvas
I have the following crop coordinates relative to this rotated image:
The coordinates are relative to the rotated image's height and width. The rotation origin is the centre of the crop rectangle. ...
-1
votes
1
answer
57
views
Crop is not working for this image using OpenCV
i need to crop the below image by detecting co-ordinates of the image using opencv.
i tried below code but it's not working as expected.
import cv2
#reading image
image = cv2.imread("input.PNG&...
0
votes
1
answer
35
views
how to get offset information of a crop/selection area in photoshop script?
When I use "DialogModes.ALL" to create a crop area,
How to get offset information after crop/selection action done by human in photoshop script ?
thanks :)
var idCrop = charIDToTypeID( "...
0
votes
0
answers
30
views
Darkent YOLOv3 tiny save boundaries
I am using AlexeyAB's Darknet to do Object detection and it works very well. However, when I am cropping the image I get a region of the image cropped (and not the boundaries itself) by running:
./...
0
votes
0
answers
32
views
How to crop visible surfaces (hull) of a mesh with Python
Is there a way to remove all visible faces (triangles), i.e. the hull, of a mesh to reveal the invisible part beyond the visible surface, i.e. the core? For example, imagine you have a cube within a ...
0
votes
0
answers
21
views
how can we fix the height and width by using ijaboCropTool?
we are using ijaboCropTool plugins, the problem not able to fix the heigh and width.
the code is below
$('#file').ijaboCropTool({
preview : '.image-previewer',
aspectRatio: 1,
onSelect: ...
2
votes
1
answer
247
views
vue-advanced-cropper image croped sized is bigger than the original
I'm implementing a system where user choose image, he must crop it before save; i'm using vue-advance-cropper plugin; all system is setted up but the result image sized is bigger than the original;
...
2
votes
0
answers
206
views
Flutter crop image according to Widget size and position
I have a Stack() with an InteractiveViewer() widget, and a resizable Container() widget that draws a box on the screen. The InteractiveViewer() contains a CameraView().
The goal is to take a picture ...
1
vote
0
answers
55
views
ScaleX/Y in android sabotages the layout arrangement
I'm trying to use the ScaleX and Y in my layout, but using it doesn't really change the view size but affects the layout measures.
for example if I use ScaleX and ScaleY on a switch button and then ...
-1
votes
1
answer
51
views
How to Crop Image in a QGraphicsView in Qt C++?
I am a beginner in Qt and for my school project I have to develop an Image Editor. The last feature I'm missing for the Editor is cropping the Image using a QRubberBand, and then crop the selected ...
0
votes
1
answer
25
views
clip raster by SpatialPolygonDataFrame
I have a raster, and want to only retain the sea part of the raster, and remove the land part or the raster. If my raster is "ras" and my SpatialpolygonDataFRame is "worldMap", I ...
0
votes
0
answers
45
views
Android draw part of a bitmap to a Canvas without creating a new Bitmap
I have got a Canvas. Its associated Bitmap is some image (see 1st image).
On top of that (see 4th image), I want to draw a part (see 3rd image) of a Bitmap (see 2nd image).
Now, I could create a ...
1
vote
0
answers
80
views
Wrong crop of image from bounding box In React-Native
I use React-native-camera library for face detection and bounding box on faces. After I want crop only faces from image. For that I used ImageEditor Library for crop image from bounding box. But not ...