diff --git a/archive/data/exofop.csv b/archive/data/exofop.csv index baf5df1f..7254f275 100644 --- a/archive/data/exofop.csv +++ b/archive/data/exofop.csv @@ -1,5 +1,5 @@ This file was produced by the Exoplanet Follow-up Observing Program website (exofop.ipac.caltech.edu) on Mon Sep 16 02:06:29 2024 - + "TICID","TOI","CTOI","Master priority","SG1A priority","SG1B priority","SG2 priority","SG3 priority","SG4 priority","SG5 priority","ESM","TSM","Predicted Mass (M_Earth)","Time Series Observations","Spectroscopy Observations","Imaging Observations","TESS Disposition","TFOPWG Disposition","TESS mag","TESS mag error","Pipeline Signal ID","Source","Detection","RA (deg)","Dec (deg)","PM RA (mas/yr)","PM RA error","PM Dec (mas/yr)","PM Dec error","Transit Epoch (BJD)","Transit Epoch error","Period (days)","Period error","Duration (hours)","Duration error","Depth (mmag)","Depth (mmag) error","Depth (ppm)","Depth (ppm) error","Planet Radius (R_Earth)","Planet Radius error","Planet Insolation (Earth flux)","Planet Eq Temp (K)","Planet SNR","Stellar Distance (pc)","Stellar Distance error","Stellar Teff (K)","Stellar Teff error","Stellar log(g) (cm/s2)","Stellar log(g) error","Stellar Radius (R_Sun)","Stellar Radius error","Stellar Metallicity","Stellar Metallicity error","Stellar Mass (M_Sun)","Stellar Mass error","Sectors","Comments","Date TOI Alerted (by TESS Project)","Date TOI Updated (by TESS Project)","Date Modified (by ExoFOP-TESS)" "231663901","101.01","","5","5","5","5","5","5","5","87.6","211.2","116.12","0","1","3","KP","KP","12.4069","0.006","1","spoc-s01-s69-b0A-KP","SPOC","318.737012","-55.871863","12.641","0.044","-16.011","0.041","2458326.009117","0.00013154597","1.4303699496507","7.7233494e-7","1.6165994039944","0.019208942","20.784","0.200653","18960.712294363","184.79134","13.187450307582","0.6576402","1281.2408253875","1525.9048088915","151.72173","375.31","4.411","5600","","4.48851","","0.89077401161194","0.0438467","","","1.05","0.129454","1,27,67","WASP-46 b","2018-09-05","2024-09-06","2024-09-06" "149603524","102.01","","5","5","5","5","5","5","5","137.4","179","317","1","2","1","KP","KP","9.7109","0.006","1","qlp-s68-ffi","SPOC","87.139821","-63.988329","-15.641","0.037","26.046","0.037","2460187.916571","0.0001263","4.4119378","8e-7","3.65","0.011","16.477767","0.075115","15062","69.1814","15.4706","0.691963","653.252","1408","1112","175.631","0.588","6280","","4.32092","","1.21","0.05","0.24","0.05","1.28","0.190812","1,2,3,4,6,7,8,9,10,11,12,13,27,28,29,30,31,32,33,34,36,37,38,39,61,62,64,65,68","WASP 62 b","2019-05-07","2023-11-16","2023-12-08" diff --git a/buckets/telescope/telescope-dailyMinorPlanet/100879215/1.png b/buckets/telescope/telescope-dailyMinorPlanet/100879215/1.png new file mode 100644 index 00000000..86b44a36 Binary files /dev/null and b/buckets/telescope/telescope-dailyMinorPlanet/100879215/1.png differ diff --git a/buckets/telescope/telescope-dailyMinorPlanet/100879215/2.png b/buckets/telescope/telescope-dailyMinorPlanet/100879215/2.png new file mode 100644 index 00000000..02c2f198 Binary files /dev/null and b/buckets/telescope/telescope-dailyMinorPlanet/100879215/2.png differ diff --git a/buckets/telescope/telescope-dailyMinorPlanet/100879215/3.png b/buckets/telescope/telescope-dailyMinorPlanet/100879215/3.png new file mode 100644 index 00000000..42a4efcb Binary files /dev/null and b/buckets/telescope/telescope-dailyMinorPlanet/100879215/3.png differ diff --git a/buckets/telescope/telescope-dailyMinorPlanet/100879215/4.png b/buckets/telescope/telescope-dailyMinorPlanet/100879215/4.png new file mode 100644 index 00000000..d16a99da Binary files /dev/null and b/buckets/telescope/telescope-dailyMinorPlanet/100879215/4.png differ diff --git a/buckets/telescope/telescope-dailyMinorPlanet/101178991/1.png b/buckets/telescope/telescope-dailyMinorPlanet/101178991/1.png new file mode 100644 index 00000000..3adaba30 Binary files /dev/null and b/buckets/telescope/telescope-dailyMinorPlanet/101178991/1.png differ diff --git a/buckets/telescope/telescope-dailyMinorPlanet/101178991/2.png b/buckets/telescope/telescope-dailyMinorPlanet/101178991/2.png new file mode 100644 index 00000000..9cfb943f Binary files /dev/null and b/buckets/telescope/telescope-dailyMinorPlanet/101178991/2.png differ diff --git a/buckets/telescope/telescope-dailyMinorPlanet/101178991/3.png b/buckets/telescope/telescope-dailyMinorPlanet/101178991/3.png new file mode 100644 index 00000000..516a92c5 Binary files /dev/null and b/buckets/telescope/telescope-dailyMinorPlanet/101178991/3.png differ diff --git a/buckets/telescope/telescope-dailyMinorPlanet/101178991/4.png b/buckets/telescope/telescope-dailyMinorPlanet/101178991/4.png new file mode 100644 index 00000000..92970044 Binary files /dev/null and b/buckets/telescope/telescope-dailyMinorPlanet/101178991/4.png differ diff --git a/buckets/telescope/telescope-dailyMinorPlanet/3774358/1.png b/buckets/telescope/telescope-dailyMinorPlanet/3774358/1.png new file mode 100644 index 00000000..b73c2c60 Binary files /dev/null and b/buckets/telescope/telescope-dailyMinorPlanet/3774358/1.png differ diff --git a/buckets/telescope/telescope-dailyMinorPlanet/3774358/2.png b/buckets/telescope/telescope-dailyMinorPlanet/3774358/2.png new file mode 100644 index 00000000..ed6acae2 Binary files /dev/null and b/buckets/telescope/telescope-dailyMinorPlanet/3774358/2.png differ diff --git a/buckets/telescope/telescope-dailyMinorPlanet/3774358/3.png b/buckets/telescope/telescope-dailyMinorPlanet/3774358/3.png new file mode 100644 index 00000000..a58e87fe Binary files /dev/null and b/buckets/telescope/telescope-dailyMinorPlanet/3774358/3.png differ diff --git a/buckets/telescope/telescope-dailyMinorPlanet/3774358/4.png b/buckets/telescope/telescope-dailyMinorPlanet/3774358/4.png new file mode 100644 index 00000000..b73c2c60 Binary files /dev/null and b/buckets/telescope/telescope-dailyMinorPlanet/3774358/4.png differ diff --git a/buckets/telescope/telescope-dailyMinorPlanet/87655022.png b/buckets/telescope/telescope-dailyMinorPlanet/87655022.png new file mode 100644 index 00000000..ad9e9e51 Binary files /dev/null and b/buckets/telescope/telescope-dailyMinorPlanet/87655022.png differ diff --git a/buckets/telescope/telescope-dailyMinorPlanet/87655022/1.jpeg b/buckets/telescope/telescope-dailyMinorPlanet/87655022/1.jpeg new file mode 100644 index 00000000..faf34f08 Binary files /dev/null and b/buckets/telescope/telescope-dailyMinorPlanet/87655022/1.jpeg differ diff --git a/buckets/telescope/telescope-dailyMinorPlanet/87655022/1.png b/buckets/telescope/telescope-dailyMinorPlanet/87655022/1.png new file mode 100644 index 00000000..ad9e9e51 Binary files /dev/null and b/buckets/telescope/telescope-dailyMinorPlanet/87655022/1.png differ diff --git a/buckets/telescope/telescope-dailyMinorPlanet/87655022/2.jpeg b/buckets/telescope/telescope-dailyMinorPlanet/87655022/2.jpeg new file mode 100644 index 00000000..3488525f Binary files /dev/null and b/buckets/telescope/telescope-dailyMinorPlanet/87655022/2.jpeg differ diff --git a/buckets/telescope/telescope-dailyMinorPlanet/87655022/2.png b/buckets/telescope/telescope-dailyMinorPlanet/87655022/2.png new file mode 100644 index 00000000..d033f716 Binary files /dev/null and b/buckets/telescope/telescope-dailyMinorPlanet/87655022/2.png differ diff --git a/buckets/telescope/telescope-dailyMinorPlanet/87655022/3.jpeg b/buckets/telescope/telescope-dailyMinorPlanet/87655022/3.jpeg new file mode 100644 index 00000000..2a187aa4 Binary files /dev/null and b/buckets/telescope/telescope-dailyMinorPlanet/87655022/3.jpeg differ diff --git a/buckets/telescope/telescope-dailyMinorPlanet/87655022/3.png b/buckets/telescope/telescope-dailyMinorPlanet/87655022/3.png new file mode 100644 index 00000000..27e94399 Binary files /dev/null and b/buckets/telescope/telescope-dailyMinorPlanet/87655022/3.png differ diff --git a/buckets/telescope/telescope-dailyMinorPlanet/87655022/4.jpeg b/buckets/telescope/telescope-dailyMinorPlanet/87655022/4.jpeg new file mode 100644 index 00000000..faf34f08 Binary files /dev/null and b/buckets/telescope/telescope-dailyMinorPlanet/87655022/4.jpeg differ diff --git a/buckets/telescope/telescope-dailyMinorPlanet/87655022/4.png b/buckets/telescope/telescope-dailyMinorPlanet/87655022/4.png new file mode 100644 index 00000000..ad9e9e51 Binary files /dev/null and b/buckets/telescope/telescope-dailyMinorPlanet/87655022/4.png differ diff --git a/buckets/telescope/telescope-dailyMinorPlanet/87658669.png b/buckets/telescope/telescope-dailyMinorPlanet/87658669.png new file mode 100644 index 00000000..704205c0 Binary files /dev/null and b/buckets/telescope/telescope-dailyMinorPlanet/87658669.png differ diff --git a/buckets/telescope/telescope-dailyMinorPlanet/87658669/1.jpeg b/buckets/telescope/telescope-dailyMinorPlanet/87658669/1.jpeg new file mode 100644 index 00000000..7cf06117 Binary files /dev/null and b/buckets/telescope/telescope-dailyMinorPlanet/87658669/1.jpeg differ diff --git a/buckets/telescope/telescope-dailyMinorPlanet/87658669/1.png b/buckets/telescope/telescope-dailyMinorPlanet/87658669/1.png new file mode 100644 index 00000000..2e375622 Binary files /dev/null and b/buckets/telescope/telescope-dailyMinorPlanet/87658669/1.png differ diff --git a/buckets/telescope/telescope-dailyMinorPlanet/87658669/2.jpeg b/buckets/telescope/telescope-dailyMinorPlanet/87658669/2.jpeg new file mode 100644 index 00000000..83fb9747 Binary files /dev/null and b/buckets/telescope/telescope-dailyMinorPlanet/87658669/2.jpeg differ diff --git a/buckets/telescope/telescope-dailyMinorPlanet/87658669/2.png b/buckets/telescope/telescope-dailyMinorPlanet/87658669/2.png new file mode 100644 index 00000000..2a89ed43 Binary files /dev/null and b/buckets/telescope/telescope-dailyMinorPlanet/87658669/2.png differ diff --git a/buckets/telescope/telescope-dailyMinorPlanet/87658669/3.jpeg b/buckets/telescope/telescope-dailyMinorPlanet/87658669/3.jpeg new file mode 100644 index 00000000..e6212a58 Binary files /dev/null and b/buckets/telescope/telescope-dailyMinorPlanet/87658669/3.jpeg differ diff --git a/buckets/telescope/telescope-dailyMinorPlanet/87658669/3.png b/buckets/telescope/telescope-dailyMinorPlanet/87658669/3.png new file mode 100644 index 00000000..704205c0 Binary files /dev/null and b/buckets/telescope/telescope-dailyMinorPlanet/87658669/3.png differ diff --git a/buckets/telescope/telescope-dailyMinorPlanet/87658669/4.jpeg b/buckets/telescope/telescope-dailyMinorPlanet/87658669/4.jpeg new file mode 100644 index 00000000..7cf06117 Binary files /dev/null and b/buckets/telescope/telescope-dailyMinorPlanet/87658669/4.jpeg differ diff --git a/buckets/telescope/telescope-dailyMinorPlanet/87658669/4.png b/buckets/telescope/telescope-dailyMinorPlanet/87658669/4.png new file mode 100644 index 00000000..2e375622 Binary files /dev/null and b/buckets/telescope/telescope-dailyMinorPlanet/87658669/4.png differ diff --git a/buckets/telescope/telescope-dailyMinorPlanet/87659096.png b/buckets/telescope/telescope-dailyMinorPlanet/87659096.png new file mode 100644 index 00000000..e2ba41ab Binary files /dev/null and b/buckets/telescope/telescope-dailyMinorPlanet/87659096.png differ diff --git a/buckets/telescope/telescope-dailyMinorPlanet/87659096/1.jpeg b/buckets/telescope/telescope-dailyMinorPlanet/87659096/1.jpeg new file mode 100644 index 00000000..bbbdc1f1 Binary files /dev/null and b/buckets/telescope/telescope-dailyMinorPlanet/87659096/1.jpeg differ diff --git a/buckets/telescope/telescope-dailyMinorPlanet/87659096/1.png b/buckets/telescope/telescope-dailyMinorPlanet/87659096/1.png new file mode 100644 index 00000000..e2ba41ab Binary files /dev/null and b/buckets/telescope/telescope-dailyMinorPlanet/87659096/1.png differ diff --git a/buckets/telescope/telescope-dailyMinorPlanet/87659096/2.jpeg b/buckets/telescope/telescope-dailyMinorPlanet/87659096/2.jpeg new file mode 100644 index 00000000..3c86d2de Binary files /dev/null and b/buckets/telescope/telescope-dailyMinorPlanet/87659096/2.jpeg differ diff --git a/buckets/telescope/telescope-dailyMinorPlanet/87659096/2.png b/buckets/telescope/telescope-dailyMinorPlanet/87659096/2.png new file mode 100644 index 00000000..0b637c6f Binary files /dev/null and b/buckets/telescope/telescope-dailyMinorPlanet/87659096/2.png differ diff --git a/buckets/telescope/telescope-dailyMinorPlanet/87659096/3.jpeg b/buckets/telescope/telescope-dailyMinorPlanet/87659096/3.jpeg new file mode 100644 index 00000000..8f456221 Binary files /dev/null and b/buckets/telescope/telescope-dailyMinorPlanet/87659096/3.jpeg differ diff --git a/buckets/telescope/telescope-dailyMinorPlanet/87659096/3.png b/buckets/telescope/telescope-dailyMinorPlanet/87659096/3.png new file mode 100644 index 00000000..a6712c30 Binary files /dev/null and b/buckets/telescope/telescope-dailyMinorPlanet/87659096/3.png differ diff --git a/buckets/telescope/telescope-dailyMinorPlanet/87659096/4.jpeg b/buckets/telescope/telescope-dailyMinorPlanet/87659096/4.jpeg new file mode 100644 index 00000000..bbbdc1f1 Binary files /dev/null and b/buckets/telescope/telescope-dailyMinorPlanet/87659096/4.jpeg differ diff --git a/buckets/telescope/telescope-dailyMinorPlanet/87659096/4.png b/buckets/telescope/telescope-dailyMinorPlanet/87659096/4.png new file mode 100644 index 00000000..e2ba41ab Binary files /dev/null and b/buckets/telescope/telescope-dailyMinorPlanet/87659096/4.png differ diff --git a/buckets/telescope/telescope-dailyMinorPlanet/87659996.png b/buckets/telescope/telescope-dailyMinorPlanet/87659996.png new file mode 100644 index 00000000..31369e51 Binary files /dev/null and b/buckets/telescope/telescope-dailyMinorPlanet/87659996.png differ diff --git a/buckets/telescope/telescope-dailyMinorPlanet/87659996/1.jpeg b/buckets/telescope/telescope-dailyMinorPlanet/87659996/1.jpeg new file mode 100644 index 00000000..2fcc6a1a Binary files /dev/null and b/buckets/telescope/telescope-dailyMinorPlanet/87659996/1.jpeg differ diff --git a/buckets/telescope/telescope-dailyMinorPlanet/87659996/1.png b/buckets/telescope/telescope-dailyMinorPlanet/87659996/1.png new file mode 100644 index 00000000..31369e51 Binary files /dev/null and b/buckets/telescope/telescope-dailyMinorPlanet/87659996/1.png differ diff --git a/buckets/telescope/telescope-dailyMinorPlanet/87659996/2.jpeg b/buckets/telescope/telescope-dailyMinorPlanet/87659996/2.jpeg new file mode 100644 index 00000000..b00fba1f Binary files /dev/null and b/buckets/telescope/telescope-dailyMinorPlanet/87659996/2.jpeg differ diff --git a/buckets/telescope/telescope-dailyMinorPlanet/87659996/2.png b/buckets/telescope/telescope-dailyMinorPlanet/87659996/2.png new file mode 100644 index 00000000..7be47d5c Binary files /dev/null and b/buckets/telescope/telescope-dailyMinorPlanet/87659996/2.png differ diff --git a/buckets/telescope/telescope-dailyMinorPlanet/87659996/3.jpeg b/buckets/telescope/telescope-dailyMinorPlanet/87659996/3.jpeg new file mode 100644 index 00000000..4792c726 Binary files /dev/null and b/buckets/telescope/telescope-dailyMinorPlanet/87659996/3.jpeg differ diff --git a/buckets/telescope/telescope-dailyMinorPlanet/87659996/3.png b/buckets/telescope/telescope-dailyMinorPlanet/87659996/3.png new file mode 100644 index 00000000..4b13597b Binary files /dev/null and b/buckets/telescope/telescope-dailyMinorPlanet/87659996/3.png differ diff --git a/buckets/telescope/telescope-dailyMinorPlanet/87659996/4.jpeg b/buckets/telescope/telescope-dailyMinorPlanet/87659996/4.jpeg new file mode 100644 index 00000000..2fcc6a1a Binary files /dev/null and b/buckets/telescope/telescope-dailyMinorPlanet/87659996/4.jpeg differ diff --git a/buckets/telescope/telescope-dailyMinorPlanet/87659996/4.png b/buckets/telescope/telescope-dailyMinorPlanet/87659996/4.png new file mode 100644 index 00000000..31369e51 Binary files /dev/null and b/buckets/telescope/telescope-dailyMinorPlanet/87659996/4.png differ diff --git a/buckets/telescope/telescope-dailyMinorPlanet/88336832.png b/buckets/telescope/telescope-dailyMinorPlanet/88336832.png new file mode 100644 index 00000000..66f68980 Binary files /dev/null and b/buckets/telescope/telescope-dailyMinorPlanet/88336832.png differ diff --git a/buckets/telescope/telescope-dailyMinorPlanet/88341827.png b/buckets/telescope/telescope-dailyMinorPlanet/88341827.png new file mode 100644 index 00000000..bb7a3eef Binary files /dev/null and b/buckets/telescope/telescope-dailyMinorPlanet/88341827.png differ diff --git a/buckets/telescope/telescope-dailyMinorPlanet/88341827/1.png b/buckets/telescope/telescope-dailyMinorPlanet/88341827/1.png new file mode 100644 index 00000000..412cae04 Binary files /dev/null and b/buckets/telescope/telescope-dailyMinorPlanet/88341827/1.png differ diff --git a/buckets/telescope/telescope-dailyMinorPlanet/88341827/2.png b/buckets/telescope/telescope-dailyMinorPlanet/88341827/2.png new file mode 100644 index 00000000..0e0525b5 Binary files /dev/null and b/buckets/telescope/telescope-dailyMinorPlanet/88341827/2.png differ diff --git a/buckets/telescope/telescope-dailyMinorPlanet/88341827/3.png b/buckets/telescope/telescope-dailyMinorPlanet/88341827/3.png new file mode 100644 index 00000000..e0b911c0 Binary files /dev/null and b/buckets/telescope/telescope-dailyMinorPlanet/88341827/3.png differ diff --git a/buckets/telescope/telescope-dailyMinorPlanet/88341827/4.png b/buckets/telescope/telescope-dailyMinorPlanet/88341827/4.png new file mode 100644 index 00000000..412cae04 Binary files /dev/null and b/buckets/telescope/telescope-dailyMinorPlanet/88341827/4.png differ diff --git a/buckets/upload.py b/buckets/upload.py index 303e33ea..b1419ce8 100644 --- a/buckets/upload.py +++ b/buckets/upload.py @@ -29,24 +29,40 @@ def check_anomaly_exists(supabase: Client, anomaly_id): print(f"Error checking for anomaly {anomaly_id}: {e}") return False -def insert_into_anomalies(supabase: Client, anomaly_id, content, anomaly_set: str): +def check_anomaly_needs_avatar_update(supabase: Client, anomaly_id): + try: + response = supabase.table('anomalies').select("avatar_url").eq("id", anomaly_id).execute() + if len(response.data) > 0: + return response.data[0]["avatar_url"] is None + return False + except Exception as e: + print(f"Error checking avatar_url for anomaly {anomaly_id}: {e}") + return False + +def insert_or_update_anomalies(supabase: Client, anomaly_id, content, anomaly_set: str, avatar_url: str): if not check_anomaly_exists(supabase, anomaly_id): try: data = { "id": anomaly_id, "content": content, - # "anomalytype": 'planet', - "anomalytype": "gaseousMapping", - # "anomalySet": anomaly_set, - "anomalySet": "lidar-jovianVortexHunter", - "parentAnomaly": 50, #69 + "anomalytype": "telescopeMinor", + "anomalySet": "telescope-minorPlanet", # anomaly_set, + "parentAnomaly": 50, + "avatar_url": avatar_url } response = supabase.table('anomalies').insert(data).execute() print(f"Inserted anomaly with id {anomaly_id} into 'anomalies' table.") except Exception as e: print(f"Failed to insert anomaly {anomaly_id}: {e}") else: - print(f"Anomaly {anomaly_id} already exists in the database. Skipping insertion.") + if check_anomaly_needs_avatar_update(supabase, anomaly_id): + try: + response = supabase.table('anomalies').update({"avatar_url": avatar_url}).eq("id", anomaly_id).execute() + print(f"Updated anomaly {anomaly_id} with new avatar_url.") + except Exception as e: + print(f"Failed to update avatar_url for anomaly {anomaly_id}: {e}") + else: + print(f"Anomaly {anomaly_id} already has an avatar_url. Skipping update.") def upload_directory_to_supabase(supabase: Client, bucket_name: str, local_directory: str): for root, dirs, files in os.walk(local_directory): @@ -68,13 +84,16 @@ def upload_directory_to_supabase(supabase: Client, bucket_name: str, local_direc anomaly_id = anomaly_set content = anomaly_set + # Upload file and if successful, insert or update the anomaly if upload_file_to_supabase(supabase, bucket_name, file_path, destination_path): - insert_into_anomalies(supabase, anomaly_id, content, anomaly_set) + # Create the avatar_url with the relative path in the Supabase bucket + avatar_url = f"{bucket_name}/{destination_path}" + insert_or_update_anomalies(supabase, anomaly_id, content, anomaly_set, avatar_url) def main(): supabase = init_supabase_client() - bucket_name = "telescope/lidar-jovianVortexHunter" - local_directory = "satellite/lidar-jovianVortexHunters" + bucket_name = "telescope/telescope-dailyMinorPlanet" + local_directory = "telescope/telescope-dailyMinorPlanet" upload_directory_to_supabase(supabase, bucket_name, local_directory) diff --git a/content/avatars/0.07389757492226079.jpg b/content/avatars/0.07389757492226079.jpg new file mode 100644 index 00000000..37b6562a Binary files /dev/null and b/content/avatars/0.07389757492226079.jpg differ diff --git a/content/avatars/0.13794308753885676.jpg b/content/avatars/0.13794308753885676.jpg new file mode 100644 index 00000000..72d26a3a Binary files /dev/null and b/content/avatars/0.13794308753885676.jpg differ diff --git a/content/avatars/0.4117873808422243.png b/content/avatars/0.4117873808422243.png new file mode 100644 index 00000000..f9cb58d2 Binary files /dev/null and b/content/avatars/0.4117873808422243.png differ diff --git a/content/avatars/0.719369311275373.webp b/content/avatars/0.719369311275373.webp new file mode 100644 index 00000000..410a6101 Binary files /dev/null and b/content/avatars/0.719369311275373.webp differ diff --git a/content/avatars/0.7332606112757318.jpg b/content/avatars/0.7332606112757318.jpg new file mode 100644 index 00000000..486b176f Binary files /dev/null and b/content/avatars/0.7332606112757318.jpg differ diff --git a/content/clouds/8423850804.png b/content/clouds/8423850804.png new file mode 100644 index 00000000..6b760623 Binary files /dev/null and b/content/clouds/8423850804.png differ diff --git a/content/clouds/94904822.png b/content/clouds/94904822.png new file mode 100644 index 00000000..4218c172 Binary files /dev/null and b/content/clouds/94904822.png differ diff --git a/content/media/1731237976894-78d4387c-e0fb-4559-8b98-da3b9e073073-screenshot.jpg b/content/media/1731237976894-78d4387c-e0fb-4559-8b98-da3b9e073073-screenshot.jpg new file mode 100644 index 00000000..8942b640 Binary files /dev/null and b/content/media/1731237976894-78d4387c-e0fb-4559-8b98-da3b9e073073-screenshot.jpg differ diff --git a/content/telescope/4173692.jpg b/content/telescope/4173692.jpg new file mode 100644 index 00000000..a37e8d83 Binary files /dev/null and b/content/telescope/4173692.jpg differ diff --git a/content/telescope/4173698.jpg b/content/telescope/4173698.jpg new file mode 100644 index 00000000..6cbe645b Binary files /dev/null and b/content/telescope/4173698.jpg differ diff --git a/content/telescope/4173704.jpg b/content/telescope/4173704.jpg new file mode 100644 index 00000000..e13249c8 Binary files /dev/null and b/content/telescope/4173704.jpg differ diff --git a/content/telescope/4173710.jpg b/content/telescope/4173710.jpg new file mode 100644 index 00000000..8b1c6b03 Binary files /dev/null and b/content/telescope/4173710.jpg differ diff --git a/content/telescope/4173716.jpg b/content/telescope/4173716.jpg new file mode 100644 index 00000000..b907b70a Binary files /dev/null and b/content/telescope/4173716.jpg differ diff --git a/content/telescope/4173722.jpg b/content/telescope/4173722.jpg new file mode 100644 index 00000000..21956101 Binary files /dev/null and b/content/telescope/4173722.jpg differ diff --git a/content/telescope/4173734.jpg b/content/telescope/4173734.jpg new file mode 100644 index 00000000..2a627522 Binary files /dev/null and b/content/telescope/4173734.jpg differ diff --git a/content/telescope/4173740.jpg b/content/telescope/4173740.jpg new file mode 100644 index 00000000..7f7cabf2 Binary files /dev/null and b/content/telescope/4173740.jpg differ diff --git a/content/telescope/4173743.jpg b/content/telescope/4173743.jpg new file mode 100644 index 00000000..79284c4f Binary files /dev/null and b/content/telescope/4173743.jpg differ diff --git a/content/telescope/4173749.jpg b/content/telescope/4173749.jpg new file mode 100644 index 00000000..d2286fe1 Binary files /dev/null and b/content/telescope/4173749.jpg differ diff --git a/content/telescope/4173758.jpg b/content/telescope/4173758.jpg new file mode 100644 index 00000000..c107fe97 Binary files /dev/null and b/content/telescope/4173758.jpg differ diff --git a/content/telescope/4173769.jpg b/content/telescope/4173769.jpg new file mode 100644 index 00000000..3cbd27a1 Binary files /dev/null and b/content/telescope/4173769.jpg differ diff --git a/utils/imgFileChange.py b/utils/imgFileChange.py new file mode 100644 index 00000000..362d4fb2 --- /dev/null +++ b/utils/imgFileChange.py @@ -0,0 +1,31 @@ +import os +from PIL import Image + +def convert_jpeg_to_png(): + """ + Convert all .jpeg and .jpg files to .png in the current directory and its subdirectories. + """ + current_directory = os.getcwd() # Get the directory where the script is located + print(f"Scanning for .jpeg and .jpg files in: {current_directory}") + + for root, _, files in os.walk(current_directory): # Walk through all directories + for file in files: + if file.lower().endswith(('.jpeg', '.jpg')): # Check for .jpeg or .jpg + jpeg_path = os.path.join(root, file) # Full path to the file + png_path = os.path.splitext(jpeg_path)[0] + ".png" # Replace extension with .png + + try: + # Open and convert the image + with Image.open(jpeg_path) as img: + img.convert("RGBA").save(png_path, "PNG") + print(f"Converted: {jpeg_path} -> {png_path}") + + # Optionally delete the original file + # os.remove(jpeg_path) + except Exception as e: + print(f"Error converting {jpeg_path}: {e}") + +if __name__ == "__main__": + print("Starting conversion of .jpeg and .jpg files to .png...") + convert_jpeg_to_png() + print("Conversion completed.") \ No newline at end of file