cancel
Showing results for 
Search instead for 
Did you mean: 

Email & photograph

gleneagles
Aspiring Legend
Posts: 11,105
Thanks: 2,459
Fixes: 17
Registered: ‎02-08-2007

Re: Email & photograph

Correct.
There may be a way to use photoshop in Linux using wine but by the time you have messed about with that it's easier in my case to do what I outlined above.
I am sure it's possible to access certain files saved in Windows whilst using Linux thus omitting the need to save the file to a hard drive and then bring it back into Linux but I am not sure how to do that.
This exercise is a one off thing so it's unlikely I will need to do it again.
If you were just using windows and you have Word there is some way of using that program to save the photograph so it can be pasted direct into the main body of a email, there are a few posts on the internet that cover it.
Thanks again for the helpful replies.
We are born into history and history is born into us.
DebbieLawson196
Newbie
Posts: 9
Registered: ‎05-06-2015

Re: Email & photograph

Use GIMP (GNU Image Manipulation Program) that runs on Win and Linux. It's a bit scary when you first run it but does most of the stuff you'll need (comparing it to PhotoShop is a bit like the comparison of LibreOffice to MS Office).
Emailing photos from a linux command line is realatively easy with python
import time
from datetime import datetime
import smtplib
from email.mime.image import MIMEImage
from email.mime.multipart import MIMEMultipart
f_time = datetime.now().strftime('%a %d %b @ %H:%M')
toaddr = 'mygmailaddres@gmail.com'    # redacted
me = 'myplusnetid@mydynamicIP.plus.net' # redacted
subject = 'Photo ' + f_time
msg = MIMEMultipart()
msg['Subject'] = subject
msg['From'] = me
msg['To'] = toaddr
msg.preamble = "Photo @ " + f_time
fp = open('photo.jpg', 'rb')
img = MIMEImage(fp.read())
fp.close()
msg.attach(img)
try:
  s = smtplib.SMTP('localhost')
  s.send_message(msg)
  s.quit()
except:
  print ("Error: unable to send email")

gleneagles
Aspiring Legend
Posts: 11,105
Thanks: 2,459
Fixes: 17
Registered: ‎02-08-2007

Re: Email & photograph

Might look easy to you but it certainly does not look easy to me.
Smiley Smiley Smiley
We are born into history and history is born into us.
VileReynard
Hero
Posts: 12,616
Thanks: 579
Fixes: 20
Registered: ‎01-09-2007

Re: Email & photograph

It would be easy to turn it into a script.
You could then just type one line with a few parameters such as destination etc.  Cheesy

"In The Beginning Was The Word, And The Word Was Aardvark."

Waldo
Grafter
Posts: 473
Registered: ‎01-08-2007

Re: Email & photograph

Quote from: gleneagles
[...]
transferred the photo to the desktop, opened firefox, used the viewer in Linux, hit the print screen key, opened Gmail and then pasted the photo into the email.
I understand there are much quicker ways to do this if you just use Windows but I never use it to access the internet.

Much simpler (and OS agnostic as befits a web service) I'd have thought, to use Gmail's drag and drop (upload) feature.
gleneagles
Aspiring Legend
Posts: 11,105
Thanks: 2,459
Fixes: 17
Registered: ‎02-08-2007

Re: Email & photograph

@waldo,
I didn't know that existed, if I ever need to do it again that's what I will do.
Thanks.
We are born into history and history is born into us.
IanSn
Rising Star
Posts: 565
Thanks: 31
Registered: ‎25-09-2011

Re: Email & photograph

So you can drag-n-drop on Gmail? Wasn't sure.
I knew it worked on Thunderbird but thought it might not on webmail.
Useful to know
DebbieLawson196
Newbie
Posts: 9
Registered: ‎05-06-2015

Re: Email & photograph

I found the problem. It's the Google Chrome & 6in4 tunnel & TG582n firmware bug.
My TG582n is running 10.2.5.2.FO and had set up my HE 6in4 tunnel to run on the router.
I've done a factory reset, reconfigured it for my network and moved the tunnel broker stuff on to a Linux machine. The network has now been stable for six days.
Waldo
Grafter
Posts: 473
Registered: ‎01-08-2007

Re: Email & photograph

Makes a big difference if you're using webmail  Smiley