trash
fedilink
QuentinCallaghan
link
fedilink
17 hilabete

Are email requirement the default for lemmy instances or it is something an operator has to choose?

The latter, it’s up to the instance admin. For example, on my instance email is required in order to decrease the likehood of it becoming a safe haven for spammers.

@jumping_skillet
creator
link
fedilink
1
edit-2
4 hilabete

deleted by creator

@ksynwa@lemmy.ml
link
fedilink
1
edit-2
7 hilabete

Why do you have to convert them to PDF? Asking because there might be an easier way than doing this.

@jumping_skillet
creator
link
fedilink
1
edit-2
4 hilabete

deleted by creator

@pinknoise@lemmy.ml
link
fedilink
1
edit-2
7 hilabete

doing this on Python or whatever language?

If you’re on Linux or MacOS doing this with a bash script would be the easiest imo, since there is ready-made software for all the steps.

  • Unpacking: unzip, unrar, 7z (the latter can handle many different formats)
  • Sorting the images: find
  • Converting them to pdf: img2pdf, imagemagick

You can even automate the downloading with e.g. wget.

On windows you could (probably) do the same with a python script (or maybe powershell idk)

Are email requirement the default for lemmy instances or it is something an operator has to choose?

That can be configured.

@jumping_skillet
creator
link
fedilink
1
edit-2
4 hilabete

deleted by creator

@pinknoise@lemmy.ml
link
fedilink
1
edit-2
7 hilabete

Find should already be installed but depending on how the files are named ls should do.

You probably want to do something similiar to this snippet:

# Create a temporary directory and save it's path
TMPD=$(mktemp -d)

# Extract the archive to that directory
7z x -o$TMPD $1

# Convert the images to PDF
img2pdf $(ls -vd $TMPD/**) -o $2

# Delete the temporary directory
rm $TMPD
@ksynwa@lemmy.ml
link
fedilink
-17 hilabete

Betted to use shell scripting for this: bash (or anothed linux shell) or Powershell depending on your os.

It’s easy if you have experience with bash otherwise bash can feel very weird at first.

@jumping_skillet
creator
link
fedilink
1
edit-2
4 hilabete

deleted by creator

A loosely moderated place to ask open ended questions

If your post is

  1. Open ended
  2. Not offensive
  3. Not regarding lemmy support (c/lemmy_support)
  4. not ad nauseam inducing (please make sure its a question that would be new to most members)

it’s welcome here!

  • 0 users online
  • 45 users / day
  • 70 users / week
  • 157 users / month
  • 565 users / 6 months
  • 8 subscribers
  • 971 Posts
  • 10.8K Comments
  • Modlog