imagemagick Montage: I can only create a montage if all the exif data is cleared.
imagemagick Montage:
I can only create a montage if all the exif data is cleared.
As a new user on Lemmy, going through the learning curve, I had issues uploading images.
Simple, I turned to imagemagick to reduce the size of the images and create a montage, rather than uploading 20 images for a simple bread recipe.
!bready@lemmy.world
========================================
I transfered my recipe images from my phone to my laptop and set about using Montage.
The images on the phone, and in the directory on my laptop, were clearly orientated in Portrait and not landscape.
========================================
Problem:
I ran montage to create a simple 4 image montage:
montage 1.jpg 2.jpg 3.jpg 4.jpg -geometry +2+2 1-montage-image.jpg
I checked the output file, the images were in the right order but had changed from portrait to Landscape. They looked terrible
I then tried some different images.
These came out as expected, in portrait and in order
=======================================
I compared the images,
identify -verbose 1.jpg
the ones I transfered from my phone still had all the exif data intact and the other ones had no exif data
========================================
So I cleared the exif data for the files.
exiftool worked perfectly:
exiftool -all= *.jpg
created an "original-images" directory, then moved the originals to "original-images" directory
mv *.jpg_original original-images
when I cleared the exif data all the images in the directory reverted to landscape
========================================
so I set them back to portrait:
One liner to change orientation by 90 degrees
find . -maxdepth 1 -type f -name "*.jpg" -exec convert {} -rotate 90 {} \;
or mogrify:
mogrify -rotate -90 *.jpg
or
mogrify -rotate +90 *.jpg
========================================
created the montage image:
montage 1.jpg 2.jpg 3.jpg 4.jpg -geometry +2+2 1-montage.jpg
========================================
Now I reduced the size so I could upload them
create an "images" directory if you do not want mogrify to overwrite the originals.
mogrify -resize 50% -quality 80 -path "/path/to/reduced/images/" *.jpg
or
mogrify -resize 50% -quality 80 -path "images" *.jpg
job done
========================================
A lot of messing about to upload an image
like this
In case you (or someone else) wants an explanation.
Modern cameras and phones save the image orientation in the exif data while keeping the orientation of the real pixels like they were originally.
But by default imagemagick doesn't use the exif data but the real pixel orientation. That's why the orientation in the montage and after removing exif data was wrong.
I think there are options to let imagemagick read the exif data. I'm too lazy to look it up.
Thank you Björn
I knew someone more technically gifted in the community would have a good answer as to why this happened.
-auto-orient
– auto-orient will read from EXIF-strip
– strip will remove all metadata- WARNING: if you’ve already used
-strip
, then-auto-orient
will do nothing
ImageMagick – Command-line Options
ImageMagick is a powerful, open-source software suite for creating, editing, converting, and manipulating images in over 200 formats.ImageMagick
US Government agency drops Grok after MechaHitler backlash, report says
US government agency drops Grok after MechaHitler backlash, report says
It appears Grok’s antisemitic rants stopped it from becoming feds’ go-to chatbot.Ashley Belanger (Ars Technica)
The American Car Industry Can’t Go On Like This
The American Car Industry Can’t Go On Like This
Ford is taking drastic steps to compete with China’s cheap EVs. Even that might not be enough.Patrick George (The Atlantic)
riempimento della squachiavanza porta la morte ad essere dischica… (Sharkey prende troppo spazio ed è un problema)
È doloroso trovarmi qui ad ammetterlo a me stessa ma, ancora una volta, scopro che i miei piani di dominazione del mondo sono stati troppo ambiziosi; almeno per ora, in questa fase più iniziale. Ovviamente tutto bene col mio codice, anche se è ancora nelle fasi iniziali… i problemi inaspettati sono piuttosto arrivati con Sharkey, […]
Israeli army unit tasked with linking Gaza journalists to Hamas
Israeli army unit tasked with linking Gaza journalists to Hamas
Treating the media as a battlefield, a secretive intelligence squad scoured Gaza for material to bolster Israeli hasbara — including questionable claims that would justify the killing of Palestinian reporters.Amos Brison (+972 Magazine)
Hundreds of Former Israeli Spies Are Working in Big Tech, Database Shows
Hundreds of Former Israeli Spies Are Working in Big Tech, Database Shows
A $25 billion deal is the latest acquisition to strengthen the link between the U.S. tech sector and Israeli intelligence.Murtaza Hussain (Drop Site News)
Student asked by BBC about A-level results just opened: ‘Free Palestine, end genocide, BBC is complicit’
Video: Student asked by BBC about A-level results just opened: ‘Free Palestine, end genocide, BBC is complicit’
BBC reporter flaps as student goes off-script onto what matters most A Liverpool student was interviewed today live on the BBC after opening their A-level results and blindsided the reporter with a…SKWAWKBOX
adhocfungus likes this.
Hezbollah’s Naim Qassem thanks Iran for support amid Lebanon's push to disarm group
Hezbollah’s Naim Qassem thanks Iran for support amid Lebanon's push to disarm group
Hezbollah’s Secretary-General Naim Qassem (Credit: Reuters)Roya News
like this
Gallup: Ukrainian Support for War Effort Collapses
Ukrainian Support for War Effort Collapses
New data from Ukraine show the public favors ending the war with Russia through negotiations, as support for fighting until victory has plummeted.Benedict Vigers (Gallup)
like this
Every person who's compromised is pro Israel.
I wouldn't put your hopes on Zohran but for now he's done an excellent job of not budging and instead arguing his way out of traps. Let's see how far it can get him.
Why LLMs can't really build software
Why LLMs Can't Really Build Software - Zed Blog
From the Zed Blog: Writing code is only one part of effective software engineering.zed.dev
like this
Good article, I couldn't agree with it more, it's exactly my experience.
The tech is being developed really fast and that is the main issue when taking about ai. Most ai haters are using the issues we might have today to discredit the while technology which makes no sense to me.
And this issue the article talks about is apparent and whoever solves it will be rich.
However, it's interesting to think about the issues that come next.
Like the guy whose baby doubled in weight in 3 months and thus he extrapolated that by the age of 10 the child would weigh many tons, you're assuming that this technology has a linear rate of improvement of "intelligence".
This is not at all what's happening - the evolution of things like LLMs in the last year or so (say between GPT4 and GPT5) is far less than it was earlier in that Tech and we keep seeing more and more news on problems about training it further and getting it improved, including the big one which is that training LLMs on the output of LLMs makes them worse, and the more the output of LLMs is out there, the harder it gets to train new iteractions with clean data.
(And, interestingly, no Tech has ever had a rate of improvement that didn't eventually tailed of, so it's a peculiar expectation to have for a specific Tech that it will keep on steadily improving)
With this specific path taken in implementing AI, the question is not "when will it get there" but rather "can it get there or is it a technological dead-end", and at least for things like LLMs the answer increasingly seems to be that it is a technological dead-end for the purpose of creating reasoning intelligence and doing work that requires it.
(For all your preemptive defense by implying that critics are "ai haters", no hate is required to do this analysis, just analytical ability and skepticism, untainted by fanboyism)
It's true, the tech will get better in the future, we just need to believe and trust the plan.
Same thing with crypto and NFT's. They were 99% scam by volume, but who wouldn't love moving their life savings into a digital ecosystem controlled by a handful of rich gambling addicts with no consumer protections? Imagine, you'll never need to handle dirty paper money ever again, we'll just put it all in a digital wallet somewhere controlled by someone else coughmastercardcough.
And another thing, we were too harsh on the Metaverse. Sure, spending 8 hours in VR could make you vomit, and the avatars made ET for the Atari look like Uncharted 4, but it was just in its infancy!
I too want to outsource all my critical thinking to a chatbot controlled by an wealthy insular narcissist who throws Nazi salutes. The technology just needs time to mature. Who knows, maybe it can automate the exile of birthright citizens for us too!
/s
I don't work in IT, but I do know you need creativity to work in the industry, something which the current LLM/AI doesn't possess.
Linguists also dismiss LLMs in similar vein because LLMs can't grasp context. It is always funny to be sarcastic and ironic on an LLM.
Soft skills and culture are what that the current iteration of LLMs lack. However, I do think there is still huge potential for AI development in dacades to come, but I want this AI bubble to burst as "in your face" to companies.
Where did the downvotes go?
I started seeing a weird trend on Lemmy that I cannot understand.
Weeks ago, posts used to have downvotes and upvotes in the semi-rational range you would expect.
Out of nowhere, it seems like almost all the posts I see now have zero downvotes with some exceptions.
What is happening here exactly?
Where did the downvotes go?
I started seeing a weird trend on Lemmy that I cannot understand.
Weeks ago, posts used to have downvotes and upvotes in the semi-rational range you would expect.
Out of nowhere, it seems like almost all the posts I see now have zero downvotes with some exceptions.
What is happening here exactly?
☆ Yσɠƚԋσʂ ☆ doesn't like this.
Texas Senate Passes Map After 2 Democrats Fail to Join House Member Walkout
The gerrymander would benefit the GOP and dilute Black and Brown voters’ power. The House may now decide its fate.
Where did the downvotes go?
I started seeing a weird trend on Lemmy that I cannot understand.
Weeks ago, posts used to have downvotes and upvotes in the semi-rational range you would expect.
Out of nowhere, it seems like almost all the posts I see now have zero downvotes with some exceptions.
What is happening here exactly?
China to launch new type of visa for young science, technology professionals
China Focus: China to launch new type of visa for young science, technology professionals
China Focus: China to launch new type of visa for young science, technology professionals-english.news.cn
Footage Shows Trump’s Pick for Labor Statistics Head in January 6 Mob
The White House claimed the Heritage Foundation economist was just a “bystander” in town for a meeting.
Masked ICE Agents Kidnap Teenager Who Was Walking His Dog
Benjamin Marcelo Guerrero Cruz had just turned 18 and was about to start his senior year.
adhocfungus likes this.
Beyond Dobbs: How Abortion Bans Enforce State-Sanctioned Violence
Journalist Kylie Cheung breaks down how post-Dobbs restrictions “aren’t unintended consequences” on the Intercept Briefing podcast.
Grenada Drops Oath of Allegiance to the British Crown, moves closer to republicanism
Grenada Drops Royal Oath in Historic Shift - The Caribbean Camera
Grenada ends the royal oath of allegiance, requiring public officials to pledge loyalty solely to the nation, sparking renewed debate on constitutional reform and republicanism.The Caribbean Camera Inc. (The Caribbean Camera)
Grenada Drops Oath of Allegiance to the British Crown, moves closer to republicanism
Grenada Drops Royal Oath in Historic Shift - The Caribbean Camera
Grenada ends the royal oath of allegiance, requiring public officials to pledge loyalty solely to the nation, sparking renewed debate on constitutional reform and republicanism.The Caribbean Camera Inc. (The Caribbean Camera)
like this
the primary school used to teach that the usa never lost a war because things like grenada and vietnam didn't have a declaration of war.
i wonder if they still teach it that way.
@ireallyhateyou is an amazing source. Both him and @ytirawi sources I'll believe anything from unless disproven. In this case he even provides a picture of the sniper the soldier used which matches the tiger stripes pattern in the picture.
Why the Heck Was Charlie Kirk Booked as a Guest on CNBC’s Squawk Box?
Turning Point USA founder Charlie Kirk was a guest on CNBC’s Squawk Box Wednesday, an inexplicable and indefensible booking even in light of networks wanting to reach a politically diverse audience.
Other media outlets, including CNN, The Washington Post, and the Los Angeles Times, have struggled with covering the Trump administration. But is there really no one else willing to go on television and discuss conservative views, GOP policies, and the Trump administration’s agenda from a center-right perspective besides Charlie Kirk?
During Kirk’s seventeen minutes on Squawk Box, co-hosts Joe Kernen and Andrew Ross Sorkin rolled through a number of timely and topically relevant questions, but the 31-year-old was unable to offer much more than diluted White House talking points and declarations of MAGA fealty.
Kernen commented that Kirk was something of a “mind reader of the president” and asked him “how should the business community think about what he says.”
Kirk’s answer was that it was “very simple” and “not complicated,” that Trump “wants what’s best for America, it’s not ideological and he wants what’s best both for capital and labor and he wants the market to succeed and wants wages to go up,” before prattling on about Trump’s “victories” with the trade deals.
Why the Heck Was Charlie Kirk Booked as a Guest on CNBC’s Squawk Box?
Turning Points USA founder Charlie Kirk was a guest on CNBC's Squawk Box Wednesday, an inexplicable and indefensible booking even in light of networks wanting to reach a politically diverse audience.Sarah Rumpf (Mediaite)
LibreOffice is right about Microsoft, and it matters more than you think.
LibreOffice is right about Microsoft, and it matters more than you think
Are we unwittingly playing into Microsoft's hands? LibreOffice thinks so.Simon Batt (XDA)
like this
UK government to use AI to predict crime locations by 2030
The UK government has launched a challenge for the development of a map that uses AI to predict where crimes will occur. It'll couple this with 13,000 more law enforcers.
https://www.neowin.net/news/uk-government-to-use-ai-to-predict-crime-locations-by-2030/
Australian lawyer apologizes for AI-generated errors in murder case
A senior lawyer in Australia has apologized to a judge for using AI-generated fake quotes and non-existent case judgments in a murder case
Can’t pay, won’t pay: impoverished streaming services are driving viewers back to piracy
Can’t pay, won’t pay: impoverished streaming services are driving viewers back to piracy
As subscription costs rise and choice diminishes on legal sites, film and TV fans are turning to VPNs and illicit streamers, with Sweden – home of both Spotify and The Pirate Bay – leading the wayGuardian staff reporter (The Guardian)
like this
It's not just a pricing issue. It's an ownership issue.
Too many of the things we buy are not ours.
Yesterday I saw the article about VW cars which need a subscription to use the built-in capabilities. The car you bought doesn't belong to you.
Should UK.gov save money by looking for open source alternatives to Microsoft? You decide
Register debate series: As £9 billion MoU sparks debate about value for money, it's time to have your say
Suspected French spy arrested in alleged Mali coup plot
The French national is accused of working "on behalf of the French intelligence service" in Mali.
Archived version: archive.is/newest/bbc.com/news…
Disclaimer: The article linked is from a single source with a single perspective. Make sure to cross-check information against multiple sources to get a comprehensive view on the situation.
A mind–reading brain implant that comes with password protection
- Attempted, inner, and perceived speech have a shared representation in motor cortex
- An inner-speech brain-computer interface (BCI) decodes general sentences with improved user experience
- Aspects of private inner speech can be decoded during cognitive tasks like counting
- High-fidelity solutions can prevent a speech brain-computer interface (BCI) from decoding private inner speech
Speech brain-computer interfaces (BCIs) show promise in restoring communication to people with paralysis but have also prompted discussions regarding their potential to decode private inner speech. Separately, inner speech may be a way to bypass the current approach of requiring speech brain-computer interface (BCI) users to physically attempt speech, which is fatiguing and can slow communication. Using multi-unit recordings from four participants, we found that inner speech is robustly represented in the motor cortex and that imagined sentences can be decoded in real time. The representation of inner speech was highly correlated with attempted speech, though we also identified a neural “motor-intent” dimension that differentiates the two. We investigated the possibility of decoding private inner speech and found that some aspects of free-form inner speech could be decoded during sequence recall and counting tasks. Finally, we demonstrate high-fidelity strategies that prevent speech brain-computer interfaces (BCIs) from unintentionally decoding private inner speech.
Thai princess being treated for severe infection, royal bureau says
She was seen by some analysts as a potential heir to the throne. Read more at straitstimes.com. Read more at straitstimes.com.
Archived version: archive.is/newest/straitstimes…
Disclaimer: The article linked is from a single source with a single perspective. Make sure to cross-check information against multiple sources to get a comprehensive view on the situation.
Kuwait decision to ban entry of Israelis receives wide public praise
Kuwait’s recent decision to allow all nationalities to enter its territory, while excluding Israeli nationals, has received wide praise and positive reactions at both official and public levels, with discussions also spreading across social media platforms.
Archived version: archive.is/newest/middleeastmo…
Disclaimer: The article linked is from a single source with a single perspective. Make sure to cross-check information against multiple sources to get a comprehensive view on the situation.
adhocfungus likes this.
One could argue that it is, personally I see it as discrimination against the state and not the people. People are just affected by state actions in this case.
It was also said that US travel bans for Muslim countries were islamophobic, but by the same token, the policy was discrimination against the state and not the people. Motivation behind the policy might have been made ny islamophobic people, but the ban itself is just foreign policy.
Edit: People seems to be misinterpreting my words or just not understanding. So let me spell it out: "discrimination against the state" is not antisemetic.
eldavi
in reply to an_onanist • • •Zerush
in reply to an_onanist • • •