This is, incidentally, how we massively screwed up the federal government. In the original design US Senators were elected by the state legislatures, the premise being that they would prevent federal overreach into the regulatory domain of the states because they would be directly accountable to the state governments.
Then populists who wanted to do everything at the federal level pushed for the 17th Amendment which eliminated the state governments' representation in the federal government and people stopped caring about local politics because it started feeling like an exercise in futility when federal law could preempt anything you wanted to do and the thing meant to keep that in check was deleted.
And the federal government was supposed to have enumerated (i.e. narrow, limited) powers. It doesn't have the scaffolding for people to hold it accountable. You can elect the local dogcatcher but the only elected office in the entire federal executive branch is the President of the United States. Which is fine when the main thing they're doing is negotiating treaties and running the Post Office but not fine if you're trying to do thousands of pages of federal regulations on everything from healthcare to banking to labor to energy.
In a fifteen year period 46 senate elections were deadlocked in 20 states, at one point Delaware had an open senate seat for four years due to this.
That said the proper reform to this would've been the abolition of the senate, as it has always been and will always be an anti-democratic force, not moving for senators to be elected by the people.
sips -s format jpeg in.heic --out out.jpeg
also, a heic is just a container around an h265 image frame