Aller au contenu
View in the app

A better way to browse. Learn more.

Next

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

[Script] Uploader une image sur imagup.com

Featured Replies

Posté(e)

Salut,

Voici un petit script minimal, puisqu'il ne fait qu'une ligne, qui permet d'envoyer une image sur imagup en ligne de commande, et de récupérer l'url.

Par exemple :

$ imagup monimage.png
http://images.imagup.com/03/1214342069_monimage.png

Pratique pour poster des captures sur le forum.

Voici le script:

#!/bin/sh
curl www.imagup.com -F "fichier=@$1;filename=`echo $1 | grep -o "[^/]\+$"`;type=image/`echo $1 | grep -o "[^\.]\+$"`" 2>/dev/null | grep image-upload | grep -o "http://images.imagup.com/[^\.]\+\.\(png\|jpg\|jpeg\|gif\)"

Pour l'installer, faites simplement :

gksudo gedit /usr/bin/imagup

et copiez-y le code, puis sauver.

Ensuite :

sudo chmod +x /usr/bin/imagup

Améliorations éventuelles à faire :

ça ne marche pas avec des majuscules : capture.JPG

ça ne marche pas avec capture.JPG.jpg

Petite démonstration, en vidéo : imagup.mkv

(à lire avec VLC par exemple)

Archivé

Ce sujet est désormais archivé et ne peut plus recevoir de nouvelles réponses.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.