id
stringlengths
16
145
text
stringlengths
1
179k
title
stringclasses
1 value
Python_StringIO/775_111_0.txt
Whenever I have a problem I can't explain on remote servers, I blame NSA hackers. That's probably why there's always an unmarked van full of men in black suits and sunglasses following me...
Python_StringIO/25046pilhowreturnstr_90_0.txt
by: Craig | last post by:
Python_StringIO/25046pilhowreturnstr_43_0.txt
> > "Christoph" wrote: > >>
Python_StringIO/25046pilhowreturnstr_111_0.txt
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
Python_StringIO/2205_86_0.txt
All reactions
Python_StringIO/2205_38_0.txt
[ Sign up ](/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser- name%3E%2F%3Crepo- name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header- repo&source_repo=python-pillow%2FPillow)
Python_StringIO/775_45_0.txt
deleted-user-64250 | 10 posts | July 22, 2013, 5:25 p.m. | [ permalink ](https://www.pythonanywhere.com/forums/topic/775/#id_post_5522)
Python_StringIO/1006_123_0.txt
1. You still don't have the imports working right. If the image plugins can't load, then you're going to get unrecognized images. Try ` from PIL import PngImagePlugin ` after importing Image. It shouldn't fail. 2. You are monkeying around with bytes too much, and there's some corruption happening. If ` data.tostring() ...
Python_StringIO/1006_167_0.txt
Copy link
Python_StringIO/1006_187_0.txt
Copy link
Python_StringIO/2205_75_0.txt
---
Python_StringIO/1006_153_0.txt
---
Python_StringIO/25046pilhowreturnstr_75_0.txt
by: KK | last post by:
Python_StringIO/25046pilhowreturnstr_110_0.txt
by: [ Sonnysonu ](https://bytes.com/profile/564136/sonnysonu/) | last post by:
Python_StringIO/25046pilhowreturnstr_78_0.txt
[ 4 ](https://bytes.com/topic/python/answers/489478-pil-thumbnails- unreasonably-large) [ ](https://bytes.com/)
Python_StringIO/2205_47_0.txt
**Have a question about this project?** Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
Python_StringIO/1006_241_0.txt
Ok, Try this, as exactly as possible. (assuming x86, make modifications for amd64.)
Python_StringIO/775_95_0.txt
deleted-user-39880 | 669 posts | July 24, 2013, 3:50 p.m. | [ permalink ](https://www.pythonanywhere.com/forums/topic/775/#id_post_5590)
Python_StringIO/1006_238_0.txt
Member
Python_StringIO/1006_45_0.txt
* [ Code ](/python-pillow/Pillow) * [ Issues ](/python-pillow/Pillow/issues) * [ Pull requests ](/python-pillow/Pillow/pulls) * [ Discussions ](/python-pillow/Pillow/discussions) * [ Actions ](/python-pillow/Pillow/actions) * [ Projects ](/python-pillow/Pillow/projects) * [ Wiki ](/python-pillow/Pillow/wiki) * [...
Python_StringIO/2205_96_0.txt
👍 1 teewuane reacted with thumbs up emoji
Python_StringIO/25046pilhowreturnstr_0_0.txt
473,441 Members | 1,752 Online
Python_StringIO/1006_78_0.txt
All reactions
Python_StringIO/2205_82_0.txt
**[ wiredfool ](/wiredfool) ** commented Nov 7, 2016
Python_StringIO/2205_7_0.txt
Explore
Python_StringIO/2205_92_0.txt
###
Python_StringIO/1006_294_0.txt
Copy link
Python_StringIO/1006_240_0.txt
**[ wiredfool ](/wiredfool) ** commented Nov 13, 2014
Python_StringIO/2205_43_0.txt
* [ Code ](/python-pillow/Pillow) * [ Issues 75 ](/python-pillow/Pillow/issues) * [ Pull requests 40 ](/python-pillow/Pillow/pulls) * [ Discussions ](/python-pillow/Pillow/discussions) * [ Actions ](/python-pillow/Pillow/actions) * [ Projects 1 ](/python-pillow/Pillow/projects) * [ Wiki ](/python-pillow/Pillo...
Python_StringIO/775_100_0.txt
21:38 ~ $ ls /usr/local/lib/python2.7/dist-packages/PIL PIL PIL-1.1.7-py2.7.egg-info _imaging.so _imagingft.so _imagingmath.so 21:38 ~ $ ls /usr/lib/x86_64-linux-gnu/libjpeg.so /usr/lib/x86_64-linux-gnu/libjpeg.so 21:38 ~ $ python Python 2.7.4 (default, Apr 19 2013, 18:28:01) [GCC 4.7.3] on linux2 Type "help", "cop...
Python_StringIO/1006_130_0.txt
###
Python_StringIO/2205_71_0.txt
Python 3.4 Pillow 3.4.2
Python_StringIO/1006_256_0.txt
but you see the problem with this, this is an x86 interpreter running in an x86 wine prefix with an x64 AMD CPU now I also want to build an x64 interpreter with the same stuff... (so why copy PIL to each interpreter I have rather than use the same PIL between interpreters) ^ I'll be doing this with PyOpenGL as well.
Python_StringIO/1006_137_0.txt
still throws an error
Python_StringIO/1006_307_0.txt
###
Python_StringIO/1006_83_0.txt
###
Python_StringIO/1006_22_0.txt
Search or jump to...
Python_StringIO/775_96_0.txt
Right, good point -- LD_LIBRARY_PATH could be the cause. Or perhaps there's some other dependency of PIL -- perhaps even a Python one? So I guess we need both...
Python_StringIO/25046pilhowreturnstr_81_0.txt
Hello, I wonder how do I create reasonable thumbnails from JPEG with PIL. My code: logging.debug('Downloading image %s' % id) uri = ''.join(, '?p=', str(id)]) uf = urlopen(uri).read() f =...
Python_StringIO/Python_StringIO_3_2.txt
") . tell ( ) ¶ Return the current stream position. truncate ( _ size = None _ , _ / _ ) ¶ Resize the stream to the given _size_ in bytes (or the current position if _size_ is not specified). The current stream position isn’t changed. This resizing can extend or reduce the current file siz...
Python_StringIO/775_49_0.txt
@app.route('/test', methods=['GET']) def test():
Python_StringIO/1006_110_0.txt
difference is, the dummy actually works >_< (I'm left stumped)
Python_StringIO/25046pilhowreturnstr_28_0.txt
> > image.save('test', 'JPEG') > image=StringIO(image.????()) # what's the right method? > return image > > Any hints? Thanx! > > > file = StringIO() > image.save(file, "JPEG") > return file.getvalue()
Python_StringIO/1006_28_0.txt
We read every piece of feedback, and take your input very seriously.
Python_StringIO/25046pilhowreturnstr_41_0.txt
Bengt Richter <bo**@oz.net> wrote:
Python_StringIO/25046pilhowreturnstr_80_0.txt
by: Almad | last post by:
Python_StringIO/775_16_0.txt
@app.route('/images', methods=['GET']) def images():
Python_StringIO/1006_75_0.txt
string(0) >>> __f[__c].tostring() I don't understand why StringIO and BytesIO cause PIL to cough when that works perfectly
Python_StringIO/2205_69_0.txt
Pillow threw an exception: ` string argument expected, got 'bytes' `
Python_StringIO/2205_11_0.txt
* [ Enterprise ](https://github.com/enterprise) * [ Teams ](https://github.com/team) * [ Startups ](https://github.com/enterprise/startups) * [ Education ](https://education.github.com)
Python_StringIO/1006_272_0.txt
[ ![@Tcll](https://avatars.githubusercontent.com/u/773959?s=80&u=96a793e9582ba5f3f67877b81c28eb43e5c3cec7&v=4) ](/Tcll)
Python_StringIO/2205_32_0.txt
## Use saved searches to filter your results more quickly
Python_StringIO/25046pilhowreturnstr_63_0.txt
[ Using PIL(/other?) to display resized images over the web? ](https://bytes.com/topic/python/answers/23574-using-pil-other-display- resized-images-over-web)
Python_StringIO/1006_107_0.txt
here's a dummy script that does the exact same thing as what throws the error:
Python_StringIO/1006_15_0.txt
* [ Learning Pathways ](https://resources.github.com/learn/pathways) * [ White papers, Ebooks, Webinars ](https://resources.github.com) * [ Customer Stories ](https://github.com/customer-stories) * [ Partners ](https://partner.github.com)
Python_StringIO/1006_131_0.txt
**[ Tcll ](/Tcll) ** commented Nov 13, 2014
Python_StringIO/2205_102_0.txt
Copy link
Python_StringIO/1006_25_0.txt
Clear
Python_StringIO/2205_118_0.txt
> In python3 you have to use a bytesio object rather than a stringio, as bytes > and strings are not cross compatible.
Python_StringIO/1006_149_0.txt
from data.Python.pillow import Image
Python_StringIO/25046pilhowreturnstr_71_0.txt
In my application I would like to convert a JPG to a PNG format. Easy, if you save the output to a file. image.save('file.png', 'PNG') Now, this is not what I want. In my application I would...
Python_StringIO/1006_310_0.txt
app = Flask(__name__)
Python_StringIO/775_33_0.txt
Here's a simplified version that breaks as well if invoked through bash :
Python_StringIO/1006_264_0.txt
Member
Python_StringIO/25046pilhowreturnstr_27_0.txt
Fredrik Lundh schrieb:
Python_StringIO/1006_215_0.txt
###
Python_StringIO/1006_203_0.txt
EDIT: GOT IT!
Python_StringIO/2205_44_0.txt
Additional navigation options
Python_StringIO/2205_67_0.txt
Image should be able to be written to any file-like object. I need StringIO to be able to stream it in text-form.
Python_StringIO/25046pilhowreturnstr_35_0.txt
>> image.save('test', 'JPEG') > image=StringIO(image.????()) # what's the right method? > return image > > Any hints? Thanx! > > > > file = StringIO() > image.save(file, "JPEG") > return file.getvalue()
Python_StringIO/1006_183_0.txt
---
Python_StringIO/775_18_0.txt
teampic = attachment['fileName'] src_width, src_height = img.size src_ratio = float(src_width) / float(src_height) dst_width = 170 dst_height = 220 dst_ratio = float(dst_width) / float(dst_height)
Python_StringIO/25046pilhowreturnstr_151_0.txt
[ Networking - Hardware / Configuration ](https://bytes.com/topic/networking/answers/)
Python_StringIO/2205_3_0.txt
[ ](https://github.com/)
Python_StringIO/1006_318_0.txt
All reactions
Python_StringIO/775_116_0.txt
It's always a pleasure to hear from you!
Python_StringIO/25046pilhowreturnstr_96_0.txt
I'm using web.py to send an image to the client. This works (shortened): print open(path, "rb").read() but this doesn't: img = Image.open(path) img.thumbnail((10,10)) print img.getdata()
Python_StringIO/25046pilhowreturnstr_136_0.txt
[ ![agi2029](https://bytes.com/avatars/avatar564154_1.gif) ](https://bytes.com/profile/564154/agi2029/)
Python_StringIO/775_59_0.txt
file = StringIO.StringIO(urllib.urlopen('http://www3.nd.edu/~networks/HumanDynamics_20Oct05/images/Einstein_1_JPEG.jpg').read()) img = Image.open(file) img = img.crop((0, 0, 400, 600))
Python_StringIO/1006_135_0.txt
however
Python_StringIO/25046pilhowreturnstr_32_0.txt
[ Bengt Richter ](/register/)
Python_StringIO/1006_347_0.txt
## Footer
Python_StringIO/1006_37_0.txt
[ Sign in ](/login?return_to=https%3A%2F%2Fgithub.com%2Fpython- pillow%2FPillow%2Fissues%2F1006)
Python_StringIO/775_103_0.txt
Actually I missed your last posts @Cartroo and @giles (didn't update the tab). Looks like you hit the mark with LD_LIBRARY_PATH and somebody fixed it?
Python_StringIO/25046pilhowreturnstr_92_0.txt
[ Python ](https://bytes.com/topic/python/answers/)
Python_StringIO/2205_83_0.txt
In python3 you have to use a bytesio object rather than a stringio, as bytes and strings are not cross compatible.
Python_StringIO/25046pilhowreturnstr_94_0.txt
[ PIL: reading bytes from Image ](https://bytes.com/topic/python/answers/614870-pil-reading-bytes-image)
Python_StringIO/1006_236_0.txt
[ ![@wiredfool](https://avatars.githubusercontent.com/u/19792?s=80&v=4) ](/wiredfool)
Python_StringIO/1006_103_0.txt
im = Image.open(StringIO( string(0) ))
Python_StringIO/25046pilhowreturnstr_53_0.txt
> > > >
Python_StringIO/25046pilhowreturnstr_116_0.txt
There are some requirements for setting up RAID: 1\. The motherboard and BIOS support RAID configuration. 2\. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
Python_StringIO/2205_6_0.txt
* [ Actions Automate any workflow ](https://github.com/features/actions) * [ Packages Host and manage packages ](https://github.com/features/packages) * [ Security Find and fix vulnerabilities ](https://github.com/features/security) * [ Codespaces Instant dev environments ](https://github.com/features/codespace...
Python_StringIO/2205_79_0.txt
Copy link
Python_StringIO/2205_81_0.txt
###
Python_StringIO/1006_235_0.txt
Sorry, something went wrong.
Python_StringIO/1006_225_0.txt
Author
Python_StringIO/1006_184_0.txt
All reactions
Python_StringIO/25046pilhowreturnstr_150_0.txt
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
Python_StringIO/2205_89_0.txt
[ ![@boskicthebrain](https://avatars.githubusercontent.com/u/6009760?s=80&u=cc7d886535a70c96874aac53ac20bbd8e99a7f70&v=4) ](/boskicthebrain)
Python_StringIO/1006_224_0.txt
Copy link