this post was submitted on 05 Apr 2024
26 points (84.2% liked)
General Discussion
12053 readers
222 users here now
Welcome to Lemmy.World General!
This is a community for general discussion where you can get your bearings in the fediverse. Discuss topics & ask questions that don't seem to fit in any other community, or don't have an active community yet.
🪆 About Lemmy World
🧭 Finding Communities
Feel free to ask here or over in: !lemmy411@lemmy.ca!
Also keep an eye on:
- !newcommunities@lemmy.world
- !communitypromo@lemmy.ca
- !new_communities@mander.xyz
- !communityspotlight@lemmy.world
- !wowthislemmyexists@lemmy.ca!
For more involved tools to find communities to join: check out Lemmyverse!
💬 Additional Discussion Focused Communities:
- !actual_discussion@lemmy.ca - Note this is for more serious discussions.
- !casualconversation@lemm.ee - The opposite of the above, for more laidback chat!
- !letstalkaboutgames@feddit.uk - Into video games? Here's a place to discuss them!
- !movies@lemm.ee - Watched a movie and wanna talk to others about it? Here's a place to do so!
- !politicaldiscussion@lemmy.world - Want to talk politics apart from political news? Here's a community for that!
Rules
Remember, Lemmy World rules also apply here.
0. See: Rules for Users.
- No bigotry: including racism, sexism, homophobia, transphobia, or xenophobia.
- Be respectful. Everyone should feel welcome here.
- Be thoughtful and helpful: even with ‘silly’ questions. The world won’t be made better by dismissive comments to others on Lemmy.
- Link posts should include some context/opinion in the body text when the title is unaltered, or be titled to encourage discussion.
- Posts concerning other instances' activity/decisions are better suited to !fediverse@lemmy.world or !lemmydrama@lemmy.world communities.
- No Ads/Spamming.
- No NSFW content.
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
@mistral@lemmings.world Write me a complete bash script which uses Imagemagick Montage to create contact sheets from a given directory of images. The script must prompt the user to input the path of the directory. It must prompt the user to input the number of columns followed by the number of rows. It must prompt the user to input the path for the output contact sheet file. The file must be in .jpg format. Source images must be scaled to fit within 200 pixels width by 300 pixels height. There must be a 30 pixel minimum gap between images in the output contact sheet file. Source images must be rotated for best fit on the page. The file name of each input image must be displayed below each of them in the contact sheet in plain black text. The background for the output contact sheet file must be white. The script must work without errors.
Here is a complete bash script that meets the requirements:
Save this script in a file with a
.sh
extension (e.g.contact_sheet.sh
), make it executable withchmod +x contact_sheet.sh
, and run it with./contact_sheet.sh
.Here's a complete bash script that accomplishes the tasks you've outlined:
Save the script as a file (e.g.,
contact_sheet.sh
), make it executable (chmod +x contact_sheet.sh
), and run it (./contact_sheet.sh
). It will prompt you for the necessary inputs and create the contact sheet file in the specified output path.