Preserve modified time when using ImageMagick + Skip with Exif in .sh fileConvert pdf to jpg keeping the same...
Where can I go to avoid planes overhead?
Introducing Gladys, an intrepid globetrotter
Proving n+1 th differential as zero given lower differentials are 0
Does it make sense for a function to return an rvalue reference?
Can a Valor bard Ready a bard spell, then use the Battle Magic feature to make a weapon attack before releasing the spell?
In Russian, how do you idiomatically express the idea of the figurative "overnight"?
Building a list of products from the elements in another list
Find the cheapest shipping option based on item weight
Is there an official reason for not adding a post-credits scene?
I'm in your subnets, golfing your code
Where are the "shires" in the UK?
Gerrymandering Puzzle - Rig the Election
A factorization game
What are the differences between credential stuffing and password spraying?
What was the first story to feature the plot "the monsters were human all along"?
My advisor talks about me to his colleague
How to adjust tikz picture so it fits to current size of a table cell?
How can I support myself financially as a 17 year old with a loan?
Why do people keep telling me that I am a bad photographer?
What exactly are the `size issues' preventing formation of presheaves being a left adjoint to some forgetful functor?
How to write a 12-bar blues melody
Why is "breaking the mould" positively connoted?
Manager is threatening to grade me poorly if I don't complete the project
What does 'made on' mean here?
Preserve modified time when using ImageMagick + Skip with Exif in .sh file
Convert pdf to jpg keeping the same name; resize & create thumbs then rename?Preserve directory structure when moving files using findfinding latest date and date modified file and using sedConvert horizontal picture to vertical using imagemagick, filling empty space around with blackSort files with a specific extension by modified time and store them into an arrayImageMagick + ruTorrent-stats (Github repo)correct syntax for use of file descriptors with imagemagickCreate Palette Image with Multiple Rows Using ImageMagickPreserve image's modification time with mogrify/imagemagickImageMagick - Incrementing file names over several for loops
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}
I have following code but it doesn't work. What am I missing? Please kindly help
Goal:
1. Resize all images in an image folder and subfolders without changing name or modified date
2. Skip imagemagick analyzing image with exif conditions:
___a. if resolution is smaller than 1170, skip
___b. only work on images modified in the last 60 min
Restriction:
- Can't create new folder
- Must return same name but preserve modified time
Shell Script:
#!/usr/bin/env bash
exiftool -q -r -ext jpg -if '
$ImageWidth > 1170 ||
$ImageHeight > 1170 and
!print "$Directory/$Filename"' imagefolder |
xargs -r0 ***--> what to do here, can't make it work
while read file
do
touch -r "$file" tmp
mogrify -resize 1170 "$file"
touch "$file" -r tmp
rm tmp
done
Update: I just realize touch -r
change the Access
and Change
date but keep modified time. Is there any option to keep the Access
and Change
time as well?
shell-script imagemagick exif
add a comment |
I have following code but it doesn't work. What am I missing? Please kindly help
Goal:
1. Resize all images in an image folder and subfolders without changing name or modified date
2. Skip imagemagick analyzing image with exif conditions:
___a. if resolution is smaller than 1170, skip
___b. only work on images modified in the last 60 min
Restriction:
- Can't create new folder
- Must return same name but preserve modified time
Shell Script:
#!/usr/bin/env bash
exiftool -q -r -ext jpg -if '
$ImageWidth > 1170 ||
$ImageHeight > 1170 and
!print "$Directory/$Filename"' imagefolder |
xargs -r0 ***--> what to do here, can't make it work
while read file
do
touch -r "$file" tmp
mogrify -resize 1170 "$file"
touch "$file" -r tmp
rm tmp
done
Update: I just realize touch -r
change the Access
and Change
date but keep modified time. Is there any option to keep the Access
and Change
time as well?
shell-script imagemagick exif
add a comment |
I have following code but it doesn't work. What am I missing? Please kindly help
Goal:
1. Resize all images in an image folder and subfolders without changing name or modified date
2. Skip imagemagick analyzing image with exif conditions:
___a. if resolution is smaller than 1170, skip
___b. only work on images modified in the last 60 min
Restriction:
- Can't create new folder
- Must return same name but preserve modified time
Shell Script:
#!/usr/bin/env bash
exiftool -q -r -ext jpg -if '
$ImageWidth > 1170 ||
$ImageHeight > 1170 and
!print "$Directory/$Filename"' imagefolder |
xargs -r0 ***--> what to do here, can't make it work
while read file
do
touch -r "$file" tmp
mogrify -resize 1170 "$file"
touch "$file" -r tmp
rm tmp
done
Update: I just realize touch -r
change the Access
and Change
date but keep modified time. Is there any option to keep the Access
and Change
time as well?
shell-script imagemagick exif
I have following code but it doesn't work. What am I missing? Please kindly help
Goal:
1. Resize all images in an image folder and subfolders without changing name or modified date
2. Skip imagemagick analyzing image with exif conditions:
___a. if resolution is smaller than 1170, skip
___b. only work on images modified in the last 60 min
Restriction:
- Can't create new folder
- Must return same name but preserve modified time
Shell Script:
#!/usr/bin/env bash
exiftool -q -r -ext jpg -if '
$ImageWidth > 1170 ||
$ImageHeight > 1170 and
!print "$Directory/$Filename"' imagefolder |
xargs -r0 ***--> what to do here, can't make it work
while read file
do
touch -r "$file" tmp
mogrify -resize 1170 "$file"
touch "$file" -r tmp
rm tmp
done
Update: I just realize touch -r
change the Access
and Change
date but keep modified time. Is there any option to keep the Access
and Change
time as well?
shell-script imagemagick exif
shell-script imagemagick exif
asked 42 mins ago
Call Me Hi HiCall Me Hi Hi
162
162
add a comment |
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "106"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f516887%2fpreserve-modified-time-when-using-imagemagick-skip-with-exif-in-sh-file%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f516887%2fpreserve-modified-time-when-using-imagemagick-skip-with-exif-in-sh-file%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown