Python 2.5
Hi all, can anybody tell me how to say "if a jpeg file does NOT have 'gallery_' in the first bit" using the python re module. Something like this:
[code=python]
re.compile('^ga llery_[^|]{1,256}.jp[e]{0,1}g$', re.I)
[/code]
The problem seems to be with the first bit "^gallery_" which is wrong, it just returns all the files that do have "gallery_" in the first bit.
User Profile
Collapse
-
Regular expressions using re
-
Is it not possible then to specify the stop position on a remote file? You could then do it in parts.
Is it possible to join them using php? Say you split them into 500KB files...... -
FTP - downloading a file in chunks
PHP version 4.4.4
Hi, what I'm trying to do is download though php (using ftp functions) a file from a home server in chunks (to prevent a browser from timing out). The files go from home-ftp-server to commercial server to customers pc. Its the home-ftp server to commercial server that needs editing. How do you use the resume option of the php function ftp_get()?. Can anyone help?? -
I solved my own problem by using exiftool to restore the IPTC and EXIF data after the resize. Anyone want to know how to do this mail me at "smmoore at tiscali dot co dot za"Leave a comment:
-
PIL - How do I resize an image while keeping the IPTC and EXIF info?
Hi,
I'm using the Python Imaging Library (PIL v1.1.6) to batch resize images. Problem is, it erases the IPTC and EXIF data for the resized file. I want the data to stay. Help?? -
Hello,
Windows XP pro sp2
Python 2.5
Pyscripter IDE
I use Tkinter at the moment as a GUILeave a comment:
No activity results to display
Show More
Leave a comment: