Image resizing with django?

I'm new to Django (and Python) and I have been trying to work out a few things myself, before jumping into using other people's apps. I'm having trouble understanding where things 'fit' in the...

Image resizing client-side with JavaScript before upload to the server

I am looking for a way to resize an image client-side with JavaScript (really resize, not just change width and height). I know it's possible to do it in Flash but I would like to avoid it if...

Android uploading pictures to server in most efficient way

I need to get images along with other data (very similar to email with attachements) to the server. I also need to do it in reliable manner so I can retry, etc on failure. Server is WCF REST...

php resize image on or before upload

how would i resize the image before or during the upload? <?php // Start a session for error reporting session_start(); ?> <?php // Check, if username session is NOT set...

How to compress an image via Javascript in the browser?

TL;DR; Is there a way to compress an image (mostly jpeg, png and gif) directly browser-side, before uploading it ? I'm pretty sure JavaScript can do this, but I can't find a way to achieve...

A Generic error occurred in GDI+ in Bitmap.Save method

I am working on to upload and save a thumbnail copy of that image in a thumbnail folder. I am using following...

Android: Resizing Bitmaps without losing quality

i've really searched through over the entire web before posting. My problem is that i cannot resize bitmap without losing the quality of the image (the quality is really bad and pixelated). I take...

How can I resize an image in an HTML generated word document whilst retaining the aspect ratio?

I've been building a word document from some HTML as per these fantastic stackoverflow...

Rails - resize image before upload to s3

I am using the s3_direct_upload gem to upload images to s3 with Rails. This gem is based on this Railscast and uses jQuery-file-upload. It is working well. I would now like to resize my images...

Show particular thumbnail on Facebook when sharing TUMBLR link

I read thru this post (https://stackoverflow.com/questions/689295/how-to-show-particular-image-as-thumbnail-while-implementing-share-on-facebook) but, I'm trying to figure out if it's possible to...

Django image resizing and convert before upload

I searched a lot on this subject but couldn't really find what I need. I'll explain my problem : On my website, the user can upload an image. I need to resize this image and convert it to JPEG...

How to put an image resized with Pillow into GridFS?

Scenario I use a formData form to upload an image via ajax which is then added to a MongoDB GridFS database. This was working: my_image = request.files.my_image raw =...

How to Resize image in Swift?

I am making an app for iOS, using Swift and Parse.com I am trying to let the user select a picture from an image picker and then resize the selected image to 200x200 pixels before uploading to my...

Image size gets bigger after upload

I'm using asp.net mvc 4 to upload images on my server. I'm using WebImage class to resize my images before uploading. But I'm now sure why but my image file size is getting bigger after upload...

Cropping with drawImage not working in Safari

I'm working on some simple image manipulation functions with canvas. The user uploads an image, is able to rotate and crop it and then clicks ok. The image is then split in half with each half...

Image Conversion - Cannot write mode RGBA as JPEG

I'm trying to resize & reduce quality of image before upload in project. Here's what I tried, def save(self): im = Image.open(self.image) output = BytesIO() im = im.resize(240, 240) ...

transparent image background change to black with Jimp

I am uploading image to aws s3 and before image upload I am resizing image using node jimp, all functionality is working but when I upload transparent image and then Jimp resize it and change...

Crop the image using JavaScript

In my Angular 6 application I am making a file upload option and in preview the uploaded file needs to be displayed with auto cropping and auto resizing. I have tried the following, HTML: <canvas...

Resize and Create Thumbnail on Image Upload Django 2 using Pillow

I am trying to resize an image on upload and also create a thumbnail out of the same resized image. I previously was able to resize the image without issues, however, when I tried adding in the...

Active Storage still detects attachement even after validation failure

This is an issue that has been going on for quite some time and to this day, I still have not found the solution. I have seen some similar issues but not quite what I have been experiencing. I...

ReactJS: Resize image before upload

In my reactJs project, I need to resize image before uploading it. I am using react-image-file-resizer library which has a simple example but not working for me. I have tried this but its shows me...

Trying to find a way to resize an image on upload in symfony 5

I am trying to figure out how to resize an image on upload with symfony 5. I was looking for a bundle and could find intervention/image but it seems it is working with laravel but not with...

Error: darwin-x64' binaries cannot be used on the 'linux-x64' platform (AWS lambda + typescript + webpack sharp module )

aws lambda with typescript is occured error when bundle by webpack. Before bundle webpack, I did "npm i --arch=x64 --platform=linux --target=12.14.1 sharp" and labmda is working properly. But,...

Uploading large files using angular and Ionic

In our Ionic mobile application we have implemented Image Upload. This works fine for smaller images but not for large images. For e.g. more than 5 MB. We are executing the APIs from angular and...

stbir_resize_uint8 crashing on memory access

I'm using stb_image to upload an image to the GPU. If I just upload the image with stbi_load I can confirm (nvidia Nsight) that the image is correctly stored in the GPU memory. However, some...

Upload to S3 using multer without a middleware function

I am using multer to upload media to my s3 bucket. I am using multer-s3 as a middleware to upload media like: const upload = multer({ storage: multerS3({ s3: s3, bucket: myBucket, ...

Dropzone.js transformFile function for resizing images

I have implemented a drag and drop image upload with Dropzone.js in my Rails app following this tutorial: https://web-crunch.com/posts/rails-drag-drop-active-storage-stimulus-dropzone Now I also...

iPhone OS image/photo resizing tool changing EXIF orientation data

It looks like when taking an HDR photo from an iOS device, because Apple doesn't rotate images and shoots them all in landscape, there's EXIF metadata (orientation in specific) that tell other...

PHP uploaded image broken or half uploaded randomly

I am facing a weird problem. If I upload an image using PHP and my uploaded image got broken or half uploaded randomly. So the image appears like this on the server: Moreover, I am just using the...

How to Resize Image before upload to S3 using multer

This is my code, it work fine, I just wish resize the image before up to s3 amazon cloud. import multer from 'multer'; import path from 'path'; import multerS3 from 'multer-s3'; import aws from...