
Host on Imageshack
Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net
A service menu to upload images on Imageshack.
0.2 version uses a log file in which saves images' name and url. Therefore, when you want upload an already hosted image, script get directly the url.
The tarball contains the .desktop file, the original script and an icon (modified version of Azureus' icon :-P ).
Requires CURL.
13 years ago
#0.1
- Serivemenu created
#0.2
- Fixed bugs
- Uses xterm showing progress
- Uses log file (~/.imageshack_upload) to prevent double uploads
#0.4
- Optimized source code
- Fixed bugs
#0.5
- Hotlinks
13 years ago
#0.1
- Serivemenu created
#0.2
- Fixed bugs
- Uses xterm showing progress
- Uses log file (~/.imageshack_upload) to prevent double uploads
#0.4
- Optimized source code
- Fixed bugs
#0.5
- Hotlinks
NameNo
12 years ago
Now it can upload multiple files at a time (when you select multiple files, right click on them and choose "Upload ...", script will upload all files in a kind of batch and display links to them in one window)
I hope, author will accept my changes.
While waiting, you may try package from here: http://ifolder.ru/9774614
Report
aly89
12 years ago
The alphanumeric number after the login= can be copied and pasted directly into the myimages parameter in the patch.
Or you can get the myimages parameter from any sniffing utility. This particular parameter is stored in a cookie during login and is subsequently used on next uploads.
Here is the patch:
--- imageshack_upload.bak 2008-12-17 17:46:35.000000000 -0500
+++ imageshack_upload 2008-12-17 17:53:59.000000000 -0500
@@ -112,7 +112,7 @@ if ! [ -f "$img" ]; then
fi
#upload file
-$curl -H Expect: -F fileupload="@${img}" -F xml=yes -# "http://www.imageshack.us/index.php" > $tmpfile
+$curl -b "myimages=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" -H Expect: -F fileupload="@${img}" -F xml=yes -# "http://www.imageshack.us/index.php" > $tmpfile
#resolve url
url=$(cat $tmpfile | grep -E "<image_link>(.*)</image_link>" | sed 's|<image_link>\(.*\)</image_link>|\1|')
url=${url// /}
Hope this helps someone.
Cheers!
Report
bugmenot1234
12 years ago
Also, she found that she can't send any img from a directory named with the char " ' ".
Small bug?
Report
bugmenot1234
12 years ago
http://my.imageshack.us/v_images.php
Report
vip
13 years ago
Instead of simply filename matching, there should be filesize or even md5 matching, to find if it really was submitted :)
Regards,
vip
Report
mathijsrogiers
13 years ago
Congrats :)
Report
m4v3r1ck
13 years ago
'KEW7 design.gif'|http://img456.imageshack.us/img456/127/kew7designzg0.gif
'KEW7 design.gif'|http://img393.imageshack.us/img393/1188/kew7designtc8.gif
I uploaded the last image without getting any warning. May it be because imageshack deletes the space on its urls?
Report
m4v3r1ck
13 years ago
Report
davepb
13 years ago
This is what I've been looking for but it would be better if it would give you the link for the thumbnail also. For example, an image that I just uploaded via the imageshack website gave me 3 urls.
1)<a href="http://img512.imageshack.us/my.php?image=save3zn1.png" target="_blank"><img src="http://img512.imageshack.us/img512/3532/save3zn1.th.png" border="0" alt="Free Image Hosting at www.ImageShack.us" /></a>
2)[URL=http://img512.imageshack.us/my.php?image=save3zn1.png]
[IMG]http://img512.imageshack.us/img512/3532/save3zn1.th.png[/IMG][/URL]
3)url=http://img512.imageshack.us/my.php?image=save3zn1.png]
[img=http://img512.imageshack.us/img512/3532/save3zn1.th.png][/url]
These are useful because I can just copy them and paste them into a forum.
Any chance this could be included into your script?
All the best
Dave
Report
Blavkaste
13 years ago
I added this feature in 0.5
Report
fradeve
13 years ago
root@fradeve-desktop:/home/fradeve# imageshack_upload avatar72038_1.gif.jpeg
cat: /root/.imageshack_upload: Nessun file o directory
/usr/bin/imageshack_upload: line 91: -H: command not found
Error: file not uploaded
:(
Report
dmcdante
13 years ago
~/.kde/share/apps/{konqueror|dolphin}/servicemenu
for me it's servicemenus and not servicemenu, i don't know if that's normal, others?
Report
Blavkaste
13 years ago
Report
fradeve
13 years ago
root@fradeve-desktop:/home/fradeve/Varie# imageshack_upload aiglx5.jpg
/usr/bin/imageshack_upload: line 72: -H: command not found
Url of image on imageshack:
Please help me, I love this ServiceMenu!
Report
Blavkaste
13 years ago
Try with: sudo apt-get install curl
Report
studioz
14 years ago
Report
Divilinux
14 years ago
tnx..great ..:)
Report
aldin
14 years ago
line 72: -H: command not found
sudo apt-get install curl
Report
LocoMojo
14 years ago
Thanks!
LocoMojo
Report
owdy
14 years ago
Report