Skip to main content
Advice
1 vote
8 replies
86 views

Our organization has HD images that are over 20 MB in size on a network drive. When trying to preview them, is it possible to have python download a smaller version of them (to reduce bandwidth) with ...
zdanman's user avatar
  • 519
3 votes
2 answers
78 views

I want to make images in Python Pillow with text, insert the images into a Microsoft Word document, and have the font size in the image match the font size in the document. How do I make the font ...
aTree's user avatar
  • 143
0 votes
1 answer
87 views

I would like to know why image flicking while adjust it's brightness during adjustment. here is my script: from nicegui import ui from PIL import Image, ImageEnhance import io, base64 original_image = ...
Mohammad Eftekharian's user avatar
5 votes
1 answer
150 views

I'm attempting to rotate an image in python by copying each individual pixel into a new blank image, (I know, probably not the best way to do it but this is what I have the theoretical knowledge basis ...
Achromatic's user avatar
0 votes
2 answers
87 views

In C/C++, we use libtiff 4.6.0 to parsing TIFF images. We identify the type of TIFF image with: unsigned int PhotoMetric = 0, SamplesPerPixel = 1, BitsPerSample = 1; TIFFGetField(Tiff, ...
Bart Theelen's user avatar
1 vote
1 answer
91 views

I have a TIFF file with a size of (48000, 432000) and I would like to upload only a piece of the image, for example, pass a parameter like (X, Y, wid, hei), where X, Y are the coordinates of the upper-...
senek's user avatar
  • 85
0 votes
2 answers
98 views

main.py from PIL import Image, ImageDraw, ImageFont base_img = Image.new("RGBA", (100, 100), (0, 255, 0)) txt = 'Sample <del color=red>text<del>' rotate = 120 font = ImageFont....
Release24's user avatar
0 votes
0 answers
39 views

Affine transformations (rotations, translations, shears and scales) can be represented (for 2-D arrays of points) as 3x3 matrices. And it is immediately clear, by looking at this matrix, what the ...
VizDracViz's user avatar
0 votes
0 answers
81 views

I have the following code to calculate and visualise the probability of scoring 10 points or more This is the Scoreboard image that I used to run the code from PIL import Image, ImageDraw import ...
Nemo's user avatar
  • 1,306
0 votes
0 answers
69 views

I recently wrote a program which renders the mandelbrot set and encountered some irrelevent issues, which some helpful users solved for me. One user reccommended I change an aspect of my code for ...
Jessica's user avatar
  • 41
3 votes
2 answers
128 views

I am trying to make a python program that can render the mandelbrot set. My full program can output an image of the set, but for some reason, it displays it cut up into opposite facing quarters. This ...
Jessica's user avatar
  • 41
0 votes
0 answers
34 views

PS C:\Users\ltaye\ecommerce> python manage.py runserver Watching for file changes with StatReloader Performing system checks... Exception in thread django-main-thread: Traceback (most recent call ...
Anas LTAIEF's user avatar
5 votes
2 answers
86 views

Using Python's Pillow (PIL) module I'm trying to shift an image 85 pixels to the right using an affine transform. The below code should to this, but instead shifts the image seemingly in the wrong ...
Christopher Pratt's user avatar
0 votes
1 answer
157 views

I am trying to embed python standalone builds to my electron app. I downloaded standalone from https://github.com/astral-sh/python-build-standalone Everything seems to work fine until pillow is ...
Art's user avatar
  • 3,161
2 votes
1 answer
81 views

I am getting weird behaviour when using PIL, here is my code: main_img = Image.open(image_url) all_colors = main_img.getcolors(maxcolors=100000) when I use this image: everything works perfectly, ...
Aadvik's user avatar
  • 1,522

15 30 50 per page
1
2 3 4 5
676