Git Product home page Git Product logo

Comments (7)

nuthinking avatar nuthinking commented on June 6, 2024

Maybe Big Sur? The app didn't ask for drive access.

from tinypng4mac.

kyleduo avatar kyleduo commented on June 6, 2024

Probably there's a problem of tinypng.com's service. The app works fine for me on Big Sur.

from tinypng4mac.

nicong622 avatar nicong622 commented on June 6, 2024

Get same error in my new M1 macbook, but work fine in my another old macbook

from tinypng4mac.

trippo avatar trippo commented on June 6, 2024

On my macbook air M1 work fine

from tinypng4mac.

kmyhy avatar kmyhy commented on June 6, 2024

I have the same error.

from tinypng4mac.

zhoujingang avatar zhoujingang commented on June 6, 2024

I have the same error

from tinypng4mac.

nisa123hj avatar nisa123hj commented on June 6, 2024

it seems like you're looking for a solution code to handle errors when sending images. However, your request is quite broad, as there can be various types of errors that might occur during image transmission. Here's a general outline of how you might approach handling errors when sending images over a network using Python's requests library. Keep in mind that this is just a basic example, and you should adapt it to your specific use case:
import requests

def send_image(image_url):
try:
response = requests.get(image_url)
if response.status_code == 200:
# Process the image or save it
with open('received_image.jpg', 'wb') as f:
f.write(response.content)
print("Image received successfully.")
else:
print(f"Error: Received HTTP status code {response.status_code}")
except requests.exceptions.RequestException as e:
print(f"Error: {e}")

if name == "main":
image_url = "https://example.com/image.jpg" # Replace with the actual image URL
send_image(image_url)

from tinypng4mac.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.