Changes required to Screenshots Plugin when running under Windows
|Reported by:||Owned by:||Radek Bartoň|
The plugin needs two minor changes to run out of the box under windows. The image content must be saved in binary format and os.mkdir throws an exception if the directory exsits. This might be a problem because delete leaves the numbered directory present. The following code changes to core.py around line 255 fix both problems and should not affect unix installations:
# Store uploaded image. try: if not os.path.exists(path): os.mkdir(path) out_file = open(large_filepath, "wb+")
Is there any way to use the other image sizes or to show the image imbedded in a page instead of as a link? Thanks for a great plugin.