Salta al contenuto principale





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

in reply to infjarchninja

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.

in reply to Björn Tantau

Thank you Björn

I knew someone more technically gifted in the community would have a good answer as to why this happened.

in reply to infjarchninja

  • -auto-orientauto-orient will read from EXIF
  • -stripstrip will remove all metadata
  • WARNING: if you’ve already used -strip, then -auto-orient will do nothing




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, […]

octospacc.altervista.org/2025/…


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, che nell’arco di una settimana mi avrà sequestrato almeno 1 GB di disco col suo database di merda, e non penso di dover spiegare quali calcoli fare per capire che una situazione del genere è insostenibile. Quindi, ho dovuto per il momento abbassare il tiro, prima che il disco del server mi si riempia in misura da costringermi a levare tutto quanto… 😖
Schermata resoconto database avvilente nel pannello admin di Sharkey523MB (425,811 recs)212MB (122,236 recs)67MB (33,361 recs)36MB (70,234 recs)26MB (115,262 recs)26MB (33,381 recs)25MB (33,393 recs)12MB (41,624 recs)12MB (60,939 recs)7MB (13,360 recs)7MB (29,394 recs)5MB (39,449 recs)3MB (10,779 recs)3MB (3,623 recs)2MB (3,365 recs)
Il problema è sostanzialmente una combinazione di 3 fattori: la mole di dati in ingresso generata da migliaia di utenti di migliaia di istanze ogni giorno è gigantesca (e il mio server non ha problemi a processarla, ma ecco, sono troppi miliardi di byte), il database è strutturato di merda (con troppi dati derivati che occupano inutilmente spazio, nonché francamente colonne inutili)… e, soprattutto, il software non ha alcun meccanismo per cancellare dati vecchi, quindi per ripulire periodicamente le note di utenti di istanze terze, o comunque quei dati che sono riottenibili. E per Misskey è da anni che la gente chiede aiuto per questo problema, ma la richiesta continua a naufragare, si vedano #13157 e linkate… e per Sharkey ugualmente è da un po’ di tempo che si parla di questo schifo, ma, forse, il fato per una buona volta mi vuole bene: 3 settimane fa in #1017 qualcuno sembra aver preso interesse a lavorarci… 😨

Comunque sia, il problema per me è ora, e quindi ho come minimo dovuto disattivare i relay, che sono dei cosi che si aggiungono per far scambiare i messaggi tra la propria istanza ed altre pur senza avere relazioni di follow con migliaia di utenti (…perché non so chi cavolo seguire io, e a me pochi mi cagano), e così l’influsso di note e allegati è passato da decine di migliaia al giorno a poche decine e basta al giorno, che è persino meno di quanto ho sulla Spacc BBS… Ma questo quindi significa direttamente che, per il momento, non avrò un flusso costante estremamente sparso e variegato di conversazioni che posso passare all’intelligenza artificiale per farla funzionare in modo completamente autonomo e a dir poco extracircostanziale. (Non che io avessi finito di scrivere il codice per questa parte, eh, ma prima o poi quello sarà pronto… e i dati allora mancheranno.) 💨

Avrei quasi la mezza idea di, pur non sapendo se questa mossa potrebbe in parte rompere l’applicazione (ma, come si suol dire, cip ciop fa l’uccellino, YOLO fa il cormorano… e in ogni caso farei un backup prima), creare uno script per fare in modo grezzo la pulizia del database… ma purtroppo non è affatto una stronzata filtrare tutto per cancellare solo i dati effettivamente ridondanti, ossia le note solo da server terzi (e fin qui ok) che non hanno relazioni internamente alla mia istanza (niente reazioni o commenti o boost da parte dei miei utenti, non sono salvate tra i preferiti, e così via), e poi cancellare anche i file a queste associati dall’altra tabella (aiuto!!!). E oltre alle note, che sono rogne, e agli allegati, che invece mi fanno proprio incazzare visto quanto occupano pur essendo solo metadati (il contenuto dei file non viene scaricato!), volendo pulire pure gli utenti è la fine… 😭

Vabbè, viste le parole (…poco attendibili?) di quella persona sconosciuta di cui sopra, però, mi conviene evitare di sbattermi, e piuttosto semplicemente pregare affinché tale promessa si trasformi in codice… al più presto. Se la mia speranza (e i miei bot potentissimi…) proprio deve morire, allora lo farà solo dopo la mia istanza, non prima!!! 😾

#1017 #database #Misskey #server #Sharkey #spazio #storage






Israeli army unit tasked with linking Gaza journalists to Hamas






in reply to geneva_convenience

I wish Obama would have done more earlier to calm the establishment Dems on Mamdani…
Questa voce è stata modificata (4 settimane fa)
in reply to PalmTreeIsBestTree

But back then Obama thought his establushment friends might still beat Mamdani so he didn't worry about it.


Gallup: Ukrainian Support for War Effort Collapses



in reply to geneva_convenience

I hope this guy isn’t another Fetterman. Talks a good talk but once elected turns into someone else.
in reply to RememberTheApollo_

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.


in reply to MarcellusDrum

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.

in reply to NoiseColor

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)

Questa voce è stata modificata (3 settimane fa)
in reply to NoiseColor

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

in reply to HarkMahlberg

That's exactly the hyperbole I was talking about. Your post is full of obvious fallacies, but the fact that you are pushing everything to the absolutes is the silliest one.
in reply to NoiseColor

Your whole point is discounting the experience of 50 years in technological evolution (that all technological branches invariably slow down and stop improving) and the last 20 years of hype in Tech (literally everything is pushed like crazy as "the next big thing" by people trying to make a lot of money from it, and almost all of it isn't), so that specific satirical take on your post is well deserved.
in reply to MarcellusDrum

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.




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?

Questa voce è stata modificata (4 settimane fa)



in reply to BrikoX

It's an article talking about what a great guy he is but the only thing that matters is if he has or has not overstayed his Visa. Their methods are cruel, but that's beside the point.
in reply to Tb0n3

We don't know. Only court can determine that, but since fascist US is ignoring constitutional due process, it's illegal until proven otherwise.




Grenada Drops Oath of Allegiance to the British Crown, moves closer to republicanism


in reply to eldavi

Only war the USA has won in recent memory
in reply to frightful_hobgoblin

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.


in reply to frightful_hobgoblin

@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.

xcancel.com/ireallyhateyou/sta…



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.


in reply to communism

The first time I updated some 50 programs by running a single update command, I wondered why it hasn’t been the standard since the start.
Questa voce è stata modificata (4 settimane fa)
in reply to otacon239

I learned about Winget command in Windows after spending a few months on Linux updating with pacman -Syu. It's so much easier to update a bunch of apps at once when I want to instead of having some popup surprise me when I launch the app.


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/

in reply to BrikoX

UK is completely off the rails, man. I feel bad for anyone who jumped ship from USA after Trump got elected. Y'all's liberals are worse than ours by a long shot.
Questa voce è stata modificata (4 settimane fa)
in reply to ushmel

I think US fascism is still worse, but UK is defintely a police state at this point and they are actively trying to surpass the US.


in reply to NinjaZ

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.

in reply to deadcatbounce

i would happily buy dvd sets if i could but the geniuses decided they didn't want to let me buy them so here i am



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.

https://www.cell.com/cell/fulltext/S0092-8674(25)00681-6



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.

in reply to Jeena

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.

Questa voce è stata modificata (4 settimane fa)


Gaza: Resistance warns of Israeli drones dropping spy devices, explosives


Resistance Security forces in the Gaza Strip on Thursday warned residents about an increase in activity by Israeli Quadcopter drones in recent days. According to a statement published on the security platform Al-Haris, these drones have dropped surveillance devices and explosive objects across various parts of the Strip.


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.



US and Russia suggest ‘West Bank-style occupation of Ukraine’


The suggestion was put forward during discussions between President Donald Trump’s envoy Steve Witkoff and his Russian counterparts, a source with insight into the U.S. National Security Council told the paper.

Witkoff, who also serves as the White House’s Middle East envoy, reportedly backs the suggestion, which the U.S. believes will solve the issue of the Ukrainian constitution prohibiting giving up territory without organizing a referendum. While Ukrainian President Volodymyr Zelensky has rejected any notion of ceding territory, the new occupation proposal may lead to a truce following Russia’s full-scale invasion of Ukraine, which began in February 2022.

According to the proposal, Ukraine’s borders would remain officially unchanged, similar to the borders of the West Bank, even as Israel controls the territory. “It’ll just be like Israel occupies the West Bank,” the source told The Times.

in reply to geneva_convenience

Unless Ukrainians are the smartest people in the world a 98% vote on anything is virtually impossible


Not if the Banderite regime asked to boycott the referendum bcs they called it illegal.
That is if opponents were even there since a lot of them moved to Banderite controlled regions.

Is that not a Russian source?


Yes it is, but I can't even see that page since my democratic EU regime has made the choice for me that I am incapable of deciding what is real or 'RuZZian propaganda!' so they block Russian outlets.
We can only have toootally neutral pro-western 'news'.

And it's a bit rich to complain about only Russian sources since it's the OCSE that refused to send observers.

There are plenty of translations of Putins speeches and statements on the subject.
I recommend you read those.

Anyway, the only important thing to remember is that there was a US orchestrated and funded fascist coup and they put a puppet regime in place, same as they did in Afghanistan or the many many countries they regime change.

I don't get how you can back the most agressive imperialist country in the world, especially since this particular proxy is openly and proudly fascist.

in reply to Bloomcole

There are plenty of translations of Putins speeches and statements on the subject.
I recommend you read those.


Such as which translation? The Tucker interview hasn't had any criticism of poor translation. Tucket got personally invited for it.

I'm in no way sympathetic to the US. In fact weakening the empire is probably what I support most. But not at the cost of a million Ukrainians.

Let's not forget who invaded Afghanistan before the US. I don't think Russia would use their power differently than NATO now if they were the global hegemon instead of the West.