Skip to content

Instantly share code, notes, and snippets.

@jdlrobson
Created November 28, 2022 23:56
Show Gist options
  • Save jdlrobson/a960e47a61b493c4af5e8f386bfedb04 to your computer and use it in GitHub Desktop.
Save jdlrobson/a960e47a61b493c4af5e8f386bfedb04 to your computer and use it in GitHub Desktop.
testpage
$group = MediaWikiServices::getInstance()->getRepoGroup();
$size = 80;
/*
Generate using following code:
fetch(`https://wikimedia.org/api/rest_v1/metrics/pageviews/top/en.wikipedia.org/all-access/2022/10/10`).then((r) => r.json()).then((r)=> {
const articles = r.items[0].articles.map((a) => a.article);
const all = [];
for( let i = 0; i < articles.length; i += 50 ) {
const t = encodeURIComponent( articles.slice(i, i+50).join('|') );
const r = fetch(`https://en.wikipedia.org/w/api.php?action=query&format=json&prop=pageimages&titles=${t}&formatversion=2&piprop=name&pilimit=50`).then((r) => r.json()).then((r) => {
try {
return ( r.query.pages ).map((r) => r.pageimage)
} catch (e) {
return [];
}
});
all.push(r);
}
return Promise.all(all);
}).then((r) => {
const pis = [].concat.apply([], r);
console.log(pis.filter((p) => p))
})
*/
$titles = [
"Portrait_of_a_Man,_Said_to_be_Christopher_Columbus.jpg",
"Monroecirca1953.jpg",
"Kleopatra-VII.-Altes-Museum-Berlin1.jpg",
"John_Wayne_Gacy_1978_mugshot.jpg",
"Jamie_Lee_Curtis_(41851191720)_(cropped).jpg",
"Michael_J_Fox_2020.jpg",
"Desembarco_de_Colón_de_Dióscoro_Puebla.jpg",
"Isabel_da_Áustria_1867.jpg",
"Mila_Kunis_2018_(cropped_2).jpg",
"Skathi-discovery-CFHT.gif",
"Cristiano_Ronaldo_2018.jpg",
"Ben_Bernanke_official_portrait.jpg",
"Nayanthara_at_Filmfare_Awards.jpg",
"Evan_Peters_by_Gage_Skidmore_3.jpg",
"Queen_Elizabeth_II_official_portrait_for_1959_tour_(retouched)_(cropped)_(3-to-4_aspect_ratio).jpg",
"Electric-eel.jpg",
"Крымский_мост_13_сентября_2019_года_(1).jpg",
"Justin_Tucker_Ravens_Camp_AUG2022_(cropped).jpg",
"Matt_Rhule_DEC2021_(cropped).png",
"Mostafa_El-Abbadi_-_Image_from_last_interview_with_Dr._Ashraf_Ezzat_before_Abbadi's_departure_.jpg",
"CPMartinez.jpg",
"Uttar_Pradesh_Chief_Minister_Shri.Mulayam_Singh_Yadav_,_addressing_at_the_National_Development_Council_52nd_Meeting,_at_Vigyan_Bhawan,_New_Delhi_on_December_9,_2006.jpg",
"JM_7.10.21_(cropped).jpg",
"FC_Admira_Wacker_Mödling_vs._FC_Red_Bull_Salzburg_2018-04-15_(077).jpg",
"FC_RB_Salzburg_versus_SV_Mattersburg_(4._Juli_2019)_29.jpg",
"Emma_D'Arcy.jpg",
"2022_Russian_invasion_of_Ukraine.svg",
"HispanTv_logo.svg",
"Bible.malmesbury.arp.jpg",
"Elvis_Presley_promoting_Jailhouse_Rock.jpg",
"Emperor_Francis_Joseph.jpg",
"Ansel_Adams_and_camera.jpg",
"XXXX_Brewery_Milton.jpg",
"Madonna_Rebel_Heart_Tour_2015_-_Stockholm_(23051472299)_(cropped).jpg",
"Ted_Bundy_headshot.jpg",
"ChristopherLloyd2022.jpg",
"Dc_none.svg",
"Kanye_West_at_the_Met_Gala_in_2019_2.png",
"Tracy_Pollan_87.jpg",
"Elon_Musk_(cropped).jpg",
"Googleplex_HQ_(cropped).jpg",
"Surrogate_parents_attending_birth.jpg",
"Paddy_Considine_at_the_\"Tyrannosaur\"_Q&A_at_the_Quad_in_Derby_(6202793361).jpg",
"Lionel_Messi_20180626.jpg",
"Flag_of_the_United_States.svg",
"Wikipedia-logo-v2.svg",
"UPCM_Akhilesh_addresses_a_PC.jpg",
"Facebook_f_logo_(2021).svg",
"Shopping_for_pumpkins_in_Ottawa.jpg",
"Cristiano_Ronaldo_2018.jpg",
"T._J._Miller_by_Gage_Skidmore.jpg",
"Jules_Bianchi_2012-1.JPG",
"Tig_Notaro_by_Gage_Skidmore.jpg",
"Day_286-_Indigenous_Peoples_Day_(8084917906).jpg",
"Waffle_House_Restaurant_torn_apart_by_Hurricane_Katrina_on_the_Biloxi,_Mississippi_coast_LCCN2010630838.tif",
"Olivia_Cooke_by_Gage_Skidmore_2.jpg",
"Xxx-movie-logo.png",
"Sergey_Surovikin_(2021_photomontage).jpg",
"Joe_Burrow_2021.jpg",
"Jack-o'-Lantern_2003-10-31.jpg",
"Flag_of_India.svg",
"Internet_map_1024_-_transparent,_inverted.png",
"Flag_of_Maryland.svg",
"Flag_of_Russia.svg",
"Flag_of_the_United_Kingdom.svg",
"Flag_of_Ukraine.svg",
"Vladimir_Putin_17-11-2021_(cropped).jpg",
"Spiro_Agnew.jpg",
"Charles_Prince_of_Wales.jpg",
"LorettaLynn1960s.jpg",
"Stanley_Tucci_2017_Berlinale.jpg",
"Brendan_Gleeson_at_the_Moet_BIFA_2014.jpg",
"Screenshot_of_Google_Translate.png",
"Ashley_Young_2018-06-13_1.jpg",
"Ian_Cole_2017-04-29_1.jpg",
"TIFF_2019_hustlers_(1_of_1)_(48696841647)_(cropped).jpg",
"Pietro_Pajetta_-_Der_Hass_-_1896.jpg",
"Lee_Zeldin_new_official_portrait.jpg",
"SDCC_2015_-_Matt_Smith.jpg",
"Team_USA_-_Mens_Basketball_-_Beijing_2008_Olympics_(2752008101).jpg",
"Paralysis_agitans_(1907,_after_St._Leger).png",
"Katie_Piper_(cropped).jpg",
"Instagram_logo_2022.svg",
"Mike_Bonin_Profile_Image.jpg",
"2022_Russian_invasion_of_Ukraine.svg",
"Andrew_Tate_on_'Anything_Goes_With_James_English'_in_2021.jpg",
"Lamar_Jackson_2020.jpg",
"Andor.svg",
"Max_Verstappen_2017_Malaysia_1.jpg",
"Flag_of_Belarus.svg",
"Julia_Roberts_2011_Shankbone_3.JPG",
"Microsoft_Office_logo_(2019–present).svg",
"Changde_battle.jpg",
"Prinses_Margaret_,_Lord_Snowdon_en_Prins_Bernhard_in_de_Hoovercraft,_Prinses_Mar,_Bestanddeelnr_917-7816_(cropped).jpg",
"Muhammad_Ali_NYWTS.jpg",
"Dwayne_Johnson_2014_(cropped).jpg",
"Satellite_picture_of_Crimea,_Terra-MODIS,_05-16-2015.jpg",
"Kobe_Bryant_2014.jpg",
"IRIS-T_expo_front.JPG",
"Tom_Brady_WFT-Buccaneers_NOV2021_(cropped).jpg",
"Iker-Casillas-SportsTrade-2021-cropped.jpg",
"Herschel_Walker_in_May_2018.jpg",
"Sarkhel_Kanhoji_Angre_I.jpg",
"Annie_Ernaux_al_Salone_del_Libro_(cropped).jpg",
"Our_(Almost_Traditional)_Thanksgiving_Dinner.jpg",
"Bray_Wyatt_2017.jpg",
"Jason_Pierre-Paul_(51684900052)_(cropped).jpg",
"American_Horror_Story.svg",
"Max_Verstappen_2017_Malaysia_3.jpg",
"Fort_vancouver_half_dollar_commemorative_obverse.jpg",
"Xxxtentacion_(cropped).jpg",
"Tom_Glynn-Carney_by_Gage_Skidmore.jpg",
"Anna_Sorokin.jpg",
"Raindrop_Cake_(28130238005).jpg",
"Marc_Menchaca_in_2019.png",
"Milly_alcock_pfw_2022_4.png",
"Cat_August_2010-4.jpg",
"Rupert_Murdoch_-_Flickr_-_Eva_Rinaldi_Celebrity_and_Live_Music_Photographer.jpg",
"Mice_X_Y_chromosomes.jpg",
"Sukkoth_-_IZE10160.jpg",
"Tom_Cruise_by_Gage_Skidmore_2.jpg",
"King_George_VI_LOC_matpc.14736_(cleaned).jpg",
"Queen_Victoria_by_Bassano.jpg",
"Coolio.jpg",
"LeBron_James_-_51959723161_(cropped).jpg",
"Ashton_Kutcher_by_David_Shankbone_2010_NYC.jpg",
"Christian_Bale-7837.jpg",
"Steve_Bruce.jpg",
"View_of_Empire_State_Building_from_Rockefeller_Center_New_York_City_dllu.jpg",
"Harvey_Weinstein_Césars_2014_(cropped)_(centered).jpg",
"Willow_Smith_,_Broccoli_City_Festival_D.C._Pictures_-_April_25,_2015.jpg",
"Lena_Headey_(47086135862)_(cropped).jpg",
"Hitler_portrait_crop.jpg",
"Black_eye_2.jpg",
"HRH_The_Prince_of_Wales_No_4_(HS85-10-36416).jpg",
"Www.wikipedia.org_screenshot_2018.png",
"Scarlett_Johansson_by_Gage_Skidmore_2_(cropped,_2).jpg",
"Illustration_of_a_brownie_by_Alice_B_Woodward.jpg",
"WhatsApp.svg",
"Richard_Ramirez_1984_mug_shot.jpg",
"Susan_Wojcicki_(29393944130)_(cropped).jpg",
"Jaimekj.png",
"Rick_and_Morty_title_card_(cropped).png",
"Rush_and_Wentz_2022.jpg",
"Rex_Orange_County_-_Photo_by_Skyler_Pradhan_(cropped).jpg",
"Gabriel_Martinelli_2020.jpg",
"Indian_actor_Amitabh_Bachchan.jpg",
"Flag_of_the_People's_Republic_of_China.svg",
"JavaScript_screenshot.png",
"Portrait_photoshoot_at_Worldcon_75,_Helsinki,_before_the_Hugo_Awards_–_George_R._R._Martin.jpg",
"Flag_of_Japan.svg",
"Reunião_com_o_ator_norte-americano_Keanu_Reeves_cropped_2_(46806576944)_(cropped).jpg",
"Simple_Periodic_Table_Chart-blocks.svg",
"Diana,_Princess_of_Wales_1997_(2).jpg",
"Flag_of_the_Republic_of_China.svg",
"Duke_of_Edinburgh_33_Allan_Warren.jpg",
"Denzel_Washington_2018.jpg",
"Joe_Biden_presidential_portrait.jpg",
"Kathy_Najimy_2011.jpg",
"Nationals_vs._Mets_Opening_Night_-_52033114079_(cropped).jpg",
"Deadpool_2_Japan_Premiere_Red_Carpet_Ryan_Reynolds_(cropped).jpg",
"Gisele_Bundchen-011_(16251942456).jpg",
"The_Pirate_Bay_logo.svg",
"David_O._Russell_avp_2014.jpg",
"Flag_of_Australia_(converted).svg",
"Donald_Trump_official_portrait.jpg",
"Flag_of_Canada_(Pantone).svg",
"S._S._Rajamouli_at_the_trailer_launch_of_Baahubali.jpg",
"Michael_Jackson_in_1988.jpg",
"President_Trump_Meets_with_Sentencing_Commutation_Recipients_(49624188912)_(cropped).jpg",
"Royal_Coat_of_Arms_of_the_United_Kingdom_(HM_Government).svg",
"Sarah_Jessica_Parker_Deauville_2018_(cropped).jpg",
"PKIERZKOWSKI_070328_FGZCP_CDG.jpg",
"Ana_de_Armas,_March_2018,_GQ_Mexico_04_cropped.jpg",
"Dimple_Yadav_Uttar_Pradesh.jpg",
"Harry_Styles_Wembley_June_2022_(cropped).jpg",
"Pete_Davidson_in_2015_(17073107891).jpg",
"Director_Mike_Flanagan_on_the_set_of_Before_I_Wake.jpg",
"Anya_Taylor-Joy_by_Patrick_Lovell,_January_2019.jpg",
"Hayden_Hurst_Cincinnati_Bengals_2022.jpg",
"Rescue_equipment_in_Tham_Luang_entrance_chamber_(cropped).jpg",
"The_world_must_officially_recognize_that_Russia_has_become_a_terrorist_state_-_address_by_the_President_of_Ukraine._(51941720577)_(cropped).jpg",
"Victor_Wembanyama_ASVEL_(cropped).jpg",
"Brian_Robinson_Jr._closeup.jpg",
"Ian_2022-09-28_1531Z.png",
"Uprising_in_Tehran,_Keshavarz_Boulvard_September_2022_(3).jpg",
"Bundesarchiv_Bild_146II-277,_Albert_Speer.jpg",
"Flag_of_Germany.svg",
"Flag_of_Iran.svg",
"Dark_vignette_Al-Masjid_AL-Nabawi_Door800x600x300.jpg",
"Mahatma-Gandhi,_studio,_1931.jpg",
"Sir_Winston_Churchill_-_19086236948.jpg",
"Catherine_de_Médicis_-_entourage_de_François_Clouet.jpg",
"King_George_1923_LCCN2014715558_(cropped).jpg",
"Amazon_Spheres_05.jpg",
"George_Clooney_2016.jpg",
"The_Rangoli_of_Lights.jpg",
"Teri_Hatcher-_World_of_Color_Premiere_21.jpg",
"Bette_Midler_2021_Kennedy_Center_Honors_(cropped).jpg",
"Emma_Robert_2016_Comic_Con.jpg",
"Rekha_in_2019.jpg",
"2021-22_UN_Human_Development_Report.svg",
"Ike_Barinholtz_(2018_crop).jpg",
"Howard_Duff_Eileen_Ryan_Twilight_Zone.JPG",
"WWImontage.jpg",
"191125_Taylor_Swift_at_the_2019_American_Music_Awards_(cropped).png",
"English_language_distribution.svg",
"Map_of_USA_with_state_and_territory_names_2.png",
"Android_logo_2019_(stacked).svg",
"Shalin_Bhanott.jpg",
"William_Shatner_Photo_Op_GalaxyCon_Richmond_2020.jpg",
"Sosie_Bacon_in_Lady_Lonely_teaser_trailer.jpg",
"Manny_Machado_8.27.21_(cropped).jpg",
"Rashmika_Mandanna_spotted_during_Goodbye_promotions_at_JW_Marriott.jpg",
"2022_FIVB_Women's_Volleyball_World_Championship_Logo.png",
"Gilbert_Bundy_-_Sanforized,_1948.jpg",
"Einstein_1921_by_F_Schmutzer_-_restoration.jpg",
"Arthur-miller.jpg",
"John_Cleese_(cropped).jpg",
"Flag_of_Nigeria.svg",
"Flag_of_the_Soviet_Union.svg",
"Flag_of_Singapore.svg",
"BBC_World_Service_2022_(Boxed).svg",
"Mike_Tyson_2019_by_Glenn_Francis.jpg",
"Brad_Pitt_2019_by_Glenn_Francis.jpg",
"A._P._J._Abdul_Kalam.jpg",
"Tony_Curtis_1958.jpg",
"Hilary_Swank_at_28th_Tokyo_International_Film_Festival.jpg",
"ATACMSMay2006_(cropped).jpg",
"Lauryn_Hill_Kongsberg_Jazzfestival_2019_(221758)_(cropped).jpg",
"Gael_García_Bernal_in_an_interview_in_May_2017.png",
"Deion_Sanders_in_2011_(cropped).jpg",
"Tommy_Tuberville_official_portrait.jpg",
"Chola_Empire_map_corrected-01.svg",
"John_Harbaugh_(52093585046)_(cropped).jpg",
"John_F._Kennedy,_White_House_color_photo_portrait.jpg",
"Lt._Gov._John_Fetterman_Portrait_(46874790005).jpg",
"Angelina_Jolie_2_June_2014_(cropped).jpg",
"Selena_Gomez_at_White_House.jpg",
"3M-54E1.jpg",
"Flag_of_Turkey.svg",
"Lisa_Marie_Presley_at_car_race.jpg",
"Official_portrait_of_Prime_Minister_Liz_Truss_(cropped).jpg",
"Nikki_Glaser.jpg",
"2022_Atlantic_hurricane_season_summary_map.png",
"Matt_Ammendola_Jets-Falcons_2021_(cropped).png",
"Arnold_Schwarzenegger_by_Gage_Skidmore_4.jpg",
"Emblem_of_the_Armed_Forces_of_Belarus.svg",
"Christopher_Guest_2016.jpg",
"Wiki-fellatio02.png",
"John_Lennon_1969_(cropped).jpg",
"J._R._R._Tolkien,_ca._1925.jpg",
"Kevin_Bacon_SDCC_2014.jpg",
"London_Montage_L.jpg",
"Map_of_Ireland's_capitals.png",
"Wikitext-wiki_markup-wikipedia.png",
"Tropmed-91-216-g001.jpg",
"1939_Playball_Joe_Dimaggio_(minus_halftone).jpg",
"Val_Kilmer_Cannes.jpg",
"ISO_C++_Logo.svg",
"Usa_basketball_2012.png",
"Seanpenn1.jpg",
"Shaquille_O'Neal_October_2017_(cropped).jpg",
"Burt_Reynolds_1991_portrait_crop.jpg",
"Geena_Davis_2013_(cropped).jpg",
"President_Barack_Obama.jpg",
"Lewis_Hamilton_2022_São_Paulo_Grand_Prix_(52498120773)_(cropped).jpg",
"H-55_AS-15_Kent_2008_G1.jpg",
"Wall_paintings_depicted_in_the_cloister_Mandapa,_Big_Temple,_Thanjavur_-_3.JPG",
"Schumacher_china_2012_crop.jpg",
"Eve_Best_Laughing.jpg",
"Kari_Lake_by_Gage_Skidmore_3.jpg",
"CheHigh.jpg",
"Armie_Hammer_Final_Portrait_Red_Carpet_Berlinale_2017_(cropped).jpg",
"Northern_Rock_Queue.jpg",
"Sajid_Khan_at_Arbaaz_Khan’s_birthday_bash_at_Su_Casa.jpg",
"Olivia_Wilde_in_2021_2.jpg",
"Jordan_Peterson_by_Gage_Skidmore.jpg",
"Saba_Azad_at_the_Audio_release_of_'Mujhse_Fraaandship_Karoge'.jpg",
"Deion_Jones_Falcons-WFT_October_2021_(cropped).jpg",
"DuaLipaO2020522_(101_of_110)_(52052470251)_(cropped).jpg",
"Jenna_Ortega_2020.jpg",
"20181204_Jordan_Poole_at_UM-NW_game_(14).jpg",
"Antony_2022.jpg",
"Grim_tactical_missile_2.jpg",
"Flag_of_California.svg",
"Margaret_Thatcher_stock_portrait_(cropped).jpg",
"Michael_Jordan_in_2014.jpg",
"NATO_OTAN_landscape_logo.svg",
"Flag_of_the_Philippines.svg",
"Logo_of_Shiv_Sena.svg",
"King-Edward-VII_(cropped).jpg",
"Leonardo_DiCaprio_2014.jpg",
"Koeh-146-no_text.jpg",
"Jeff_Bezos_visits_LAAFB_SMC_(3908618)_(cropped).jpeg",
"Queen_Latifah_2018.jpg",
"Priscilla_Presley_2014.jpg",
"Jonathan_Brandis_Wiki.jpg",
"Bridget_Moynahan_at_Watch!_Magazine_10_year_anniversary.jpg",
"Kempermugshot.jpg",
"Chris_Pratt_2018.jpg",
"New_York_Mirror_Front_Page_of_August_6,_1962.jpeg",
"Steve_Jobs_Headshot_2010-CROP_(cropped_2).jpg",
"Twitter-logo.svg",
"Wikimedia_Foundation_logo_-_vertical.svg",
"Antoine_Griezmann_in_2018_(cropped).jpg",
"Finn_Wittrock_1.jpg",
"Alia_Bhatt_at_Berlinale_2022_Ausschnitt.jpg",
"Hasan_Minhaj_2013.jpg",
"The_Handmaid's_Tale_intertitle.png",
"Jalen_Hurts_11-14-22_(cropped).jpg",
"Candace_Owens_(51331093124)_(cropped).jpg",
"Jamie-Lee_O’Donnell_for_National_Lottery.jpg",
"2022_Russian_Invasion_of_Ukraine_animated.gif",
"Tova_Friedman.jpg",
"David-Bowie_Chicago_2002-08-08_photoby_Adam-Bielawski-cropped.jpg",
"FIFA_World_Cup_Trophy.jpg",
"Flag_of_Italy.svg",
"Flag_of_the_Netherlands.svg",
"Flag_of_Pakistan.svg",
"Shakespeare.jpg",
"Clint_Eastwood_at_2010_New_York_Film_Festival.jpg",
"Johnny_Depp_2020.jpg",
"William_Sumbarines_Crop.png",
"Des_O'Connor,_Christchurch_NZ_(1974)_3_(cropped).jpg",
"Pablo_Escobar_Mug.jpg",
"Deutsche_Welle.jpg",
"Official_Photograph_of_Prime_Minister_Narendra_Modi_Potrait.png",
"Rhys_Ifans_2011_cropped_(cropped).jpg",
"Colonel_Tom_Parker_1969_(cropped).jpg",
"Mikel_Arteta_(cropped).jpg",
"Trisha_at_World_Children's_Day_Press_Meet.png",
"Thalamus_small.gif",
"Thomas_Lennon_February_2015.jpg",
"Mental_Health_Awareness_Rally,_2014.JPG",
"Flag_of_France.svg",
"Mark_Wahlberg_2021.jpg",
"Breaking_Bad_logo.svg",
"Ted_Kaczynski_2_(cropped).jpg",
"SYDNEY,_AUSTRALIA_-_JANUARY_23_Margot_Robbie_arrives_at_the_Australian_Premiere_of_'I,_Tonya'_on_January_23,_2018_in_Sydney,_Australia_(25980751148)_(cropped).jpg",
"Marvel_Cinematic_Universe_logo.png",
"Aaron_Judge_2018.jpg",
"Taysom_Hill_Saints.jpg",
"Urvashi_Rautela_snapped_during_a_photo_shoot_(01).jpg",
"Maya_Hawke_2019_by_Glenn_Francis_(cropped).jpg",
"Stranger_Things_logo.png",
"Florence_Pugh_-_The_Wonder_BFI_London_Film_Festival_Premiere,_October_2022_(cropped).jpg",
"Morfydd_Clark_2022.png",
"Douyin_logo.svg",
"Apple_park_cupertino_2019.jpg",
"CliveBarker.jpg",
"Wiki_training_0226.jpg",
"Nobel_Prize.png",
"New_York_Mets_Insignia.svg",
"Sandra_Bullock_in_July_2013.jpg",
"Tupac_Shakur's_signature.svg",
"Mounted_Soldier_System_(MSS).jpg",
"Manson1968.jpg",
"UEFA_Champions_League_logo.svg",
"Cakchiquel_family.JPG",
"Liam_Neeson_Deauville_2012.jpg",
"Jacques-Louis_David_-_The_Emperor_Napoleon_in_His_Study_at_the_Tuileries_-_Google_Art_Project.jpg",
"Donald_Sutherland_(cropped).JPG",
"Leif_Erikson_Statue,_Duluth_(15290644106).jpg",
"HIMARS_-_missile_launched.jpg",
"Roger_Waters_en_el_Palau_Sant_Jordi_de_Barcelona_(The_Wall_Live)_-_04_(crop).jpg",
"50_Cent_in_2018.png",
"Sophie_franzjoseph.jpg",
"Nominal_GDP_of_Countries_Crimea_edited.svg",
"Samajwadi_Party_Flag.jpg",
"Маріїнський_палац_в_Києві_(cropped).jpg",
"IX8A4236_(44120171045)_(cropped).jpg",
"Cris_Collinsworth_(37045366070).jpg",
"Generation_timeline.svg",
"Eminem_-_Concert_for_Valor_in_Washington,_D.C._Nov._11,_2014_(2)_(Cropped).jpg",
"Paul_Buchheit.jpg",
"Vikram_as_Dhruva.jpg",
"Aishwarya_Rai_Cannes_2017.jpg",
"Queen_Elizabeth_II_on_her_Coronation_Day_(cropped).jpg",
"Zendaya_-_2019_by_Glenn_Francis.jpg",
"Lilly_James_(35744205321).jpg",
"Bella_Hadid,_2021_(cropped).jpg",
"Emily_Carey_Tomb_Raider_European_Premiere_Red_Carpet_(close-up).jpg",
"Wankaner-palace.png",
"Abraham_Lincoln_O-77_matte_collodion_print.jpg",
"Charlie_Chaplin_portrait.jpg",
"Flag_of_England.svg",
"Lord_Mountbatten_Naval_in_colour_Allan_Warren.jpg",
"Flag_of_Indonesia.svg",
"Flag_of_Moldova.svg",
"Location_North_America.svg",
"RHCP_Live_in_London_26_June_2022.jpg",
"Stephen_King,_Comicon.jpg",
"VNWarMontage.png",
"Everest_North_Face_toward_Base_Camp_Tibet_Luca_Galuzzi_2006.jpg",
"Boschsevendeadlysins.jpg",
"Robin_Williams_Happy_Feet_premiere.jpg",
"Poster_-_Gone_With_the_Wind_01.jpg",
"Steven_Seagal_November_2016.jpg",
"Taj_Mahal_in_India_-_Kristian_Bertel.jpg",
"Edvard_Munch_-_Despair_(1894).jpg",
"Maximiliano_de_Habsburgo.jpg",
"Bruno_Latour_in_Taiwan_P1250394_(cropped).jpg",
"Dotxxx.png",
"Danny_Masterson_(cropped).jpg",
"Connie_Britton_2013.jpg",
"Tux.svg",
"Cam_Newton_2021_WFT_vs_CAR_(cropped).jpg",
"\"The_Climbers\"_Howard_Shank,_1913_LCCN2016844664_(cropped).jpg",
"Jennifer_Lawrence_in_2016.jpg",
"Matthew_McConaughey_2019_(48648344772).jpg",
"Screen_of_Xvideos_login_page.PNG",
"Florida_Governor_Ron_DeSantis_in_2020.jpg",
"Telegram_2019_Logo.svg",
"2022_Malaysian_general_election_results_map.svg",
"2022_Brazil_Presidential_Elections,_Round_2.svg",
"Flag_of_the_Taliban.svg",
"Alexander_Mosaic-high_res_fragment.jpg",
"The_C_Programming_Language_logo.svg",
"Europe_orthographic_Caucasus_Urals_boundary_(with_borders).svg",
"After_Hans_Holbein_the_Younger_-_Portrait_of_Henry_VIII_-_Google_Art_Project.jpg",
"210120-D-WD757-1975_(50860511978)_(cropped).jpg",
"Flag_of_the_Ottoman_Empire_(1844–1922).svg",
"Flag_of_Poland.svg",
"Flag_of_Switzerland_(Pantone).svg",
"Freddie_Mercury_performing_in_New_Haven,_CT,_November_1977.jpg",
"Thora_Birch.jpg",
"Flag_of_the_United_Arab_Emirates.svg",
"Jim_Carrey_2008.jpg",
"Someone_enjoying_a_trip_out_with_their_sister_in_law_(WCAS21)_(51440646599)_(cropped).jpg",
"Albert_Fish_1903_crop.jpg",
"Colin_Farrell_by_Gage_Skidmore.jpg",
"Christina_Ricci_(49596830836)_(cropped).jpg",
"Gary_Ridgway_Mugshot_11302001.jpg",
"Jimmy_Smits_by_Gage_Skidmore.jpg",
"Ryan_Gosling_in_2018.jpg",
"EvaMendescropped.jpg",
"Premios_Goya_2020_-_Carles_Pujol.jpg",
"Niecy_Nash_2010.jpg",
"Blake_Lively_Cannes_2016_3.jpg",
"Elton_John_2011_Shankbone_2_(cropped).JPG",
"WTC_smoking_on_9-11.jpeg",
"HTTP_logo.svg",
"XXX_P_icon.png",
"Brian_Daboll_Jan_2018.jpg",
"Flag_of_South_Africa.svg",
"Stephen_Hawking.StarChild.jpg",
"Kid_Cudi_2010_2_(crop).jpg",
"Jennifer_Connelly_2010_TIFF.jpg",
"Bo_Dallas_may_2017_01.jpg",
"Domhnall_Gleeson_by_Gage_Skidmore.jpg",
"Miles_Teller_Commanders_at_Eagles_NOV2022_(cropped).jpg",
"Daniel_Vogelbach_during_warmups,_Aug_05_2022_(cropped).jpg",
"Jaeden_Martell_(26274259067).jpg",
"Mia_Goth_2018_(crop).png",
"2022_United_States_Senate_elections_results_map.svg",
"Flag_of_Bangladesh.svg",
"Carolina_panthers_uniforms19.png",
"Darnley_stage_3.jpg",
"JimmyCarterPortrait_(cropped).jpg",
"Bandera_de_España.svg",
"HTTP_logo.svg",
"LaLiga_logo_(stacked).svg",
"2022_collage_V1.png",
"Bruce_Willis_by_Gage_Skidmore_3.jpg",
"Danny_DeVito_in_2018.png",
"Jackie_Chan_July_2016.jpg",
"Mani_Ratnam_at_the_Oh_Kadhal_Kanmani_aka_OK_Kanmani_Audio_Success_Meet.jpg",
"Flag_of_Saudi_Arabia.svg",
"Shah_Rukh_Khan_graces_the_launch_of_the_new_Santro.jpg",
"The_Union_Minister_for_Railways,_Shri_Lalu_Prasad_addressing_the_Media_to_announce_a_policy_matter_in_New_Delhi_on_September_12,_2004.jpg",
"Marines_Advance_on_Japanese_Pill_Boxes,_Tarawa,_November_1943_(10962107133).jpg",
"Jan_Hooks.jpg",
"IAEA_02790015_(5613115146).jpg",
"Flag_of_Malaysia.svg",
"Flag_of_Mexico.svg",
"Flag_of_New_Zealand.svg",
"JohnDavidWashington.jpg",
"Hrithik_at_Rado_launch.jpg",
"Dakota_Johnson_Venice_2018_(cropped).jpg",
"Kevin_de_León_(portrait).jpg",
"Atomic_bombing_of_Japan.jpg",
"Baz_Luhrmann,_Eva_Rinaldi_(2),_Olivia_Dejonge,_Austin_Butler,Tom_Hanks_(52123990193)_(cropped)2.jpg",
"Hannah_Waddingham_2010.jpg",
"NASA-Apollo8-Dec24-Earthrise-b.jpg",
"Lothlorien_by_Tessa_Boronski.jpg",
"Justin_Bieber_in_2015.jpg",
"Camila_Cabello_by_GQ_(September_2021)_02.jpg",
"BTS_during_a_White_House_press_conference_May_31,_2022_(cropped).jpg",
"RakshitShetty.jpg",
"Maria_Taylor_1_(cropped).jpg",
"Nora_Fatehi_in_March_2022_enhanced.jpg",
"Samuel_Little.webp",
"KeizersgrachtReguliersgrachtAmsterdam.jpg",
"CivilWarUSAColl.png",
"Flag_of_Cyprus.svg",
"CroppedStalin1943.jpg",
"Flag_of_Malta.svg",
"Flag_of_Portugal.svg",
"SD_Logo_Brown.svg",
"Alexander_Lukashenko_2022_(cropped).jpg",
"Flag_of_OPEC.svg",
"Janet_Leigh_1954_portrait.png",
"Zodiac-Killer.jpg",
"Mayim_Bialik,_March_2018_(4116)_(cropped).jpg",
"Zlatan_Ibrahimović_June_2018.jpg",
"Charles_Spencer_20171207_02.jpg",
"Emily_Blunt_SAG_Awards_2019.png",
"Shia_LaBeouf_2022.jpg",
"Charles_Martinet_Photo_Op_GalaxyCon_Richmond_2020.jpg",
"Fred_Armisen_at_the_2015_Peabody_Awards.jpg",
"Norwegian_Advanced_Surface_to_Air_Missile_System.jpg",
"Chloe_Moretz_2018_2.jpg",
"Paramore_-_The_O2_-_Friday_12th_January_2018_DSC03984ParamoreO2Jan18_(25112969047).jpg",
"1903_World_Series_-_Boston_Americans.jpg",
"Flag_of_Israel.svg",
"Zac_Efron_at_the_Baywatch_Red_Carpet_Premiere_Sydney_Australia.jpg",
"Kris_Jenner_shot_by_Jim_Jordan_at_White_Cross_Studios_(cropped).jpg",
"Jesse_Jackson_2013.jpg",
"Ariana_Grande_Grammys_Red_Carpet_2020.png",
"Tom_Holland_by_Gage_Skidmore.jpg",
"Draymond_Green_2022.jpg",
"Mrunal_Thakur_during_promotion_of_Super_30.jpg",
"Halsey_September_2019.jpg",
"Timothée_Chalamet_2017_Berlinale.jpg",
"2015_Nepal_depremi_(7).jpg",
"Virgil_Abloh_Paris_Fashion_Week_Autumn_Winter_2019_(cropped).jpg",
"Screen_of_OnlyFans.png",
"Anita_Anand_April_2022_(cropped).jpg",
"Trisomy_X_facial_phenotypes_(cropped).png",
"2022_Austrian_presidential_election.svg",
"Flag_of_Brazil.svg",
"Baltimore_ravens_uniforms.png",
"FDR_1944_Color_Portrait.jpg",
"Gilbert_Stuart_Williamstown_Portrait_of_George_Washington.jpg",
"Flag_of_Hong_Kong.svg",
"Lancering_Invictus_Games_2020-7_(cropped).jpg",
"Flag_of_Kazakhstan.svg",
"Coat_of_Arms_of_Mayotte.svg",
"Aécio_Neves,_Michael_Schumacher_e_Didi_(Cropped).jpg",
"Official_Portrait_of_President_Reagan_1981.jpg",
"The_Fabs.JPG",
"Flag_of_Thailand.svg",
"Flag_of_Georgia.svg",
"OzzyChangingHands02-20-2010.jpg",
"Reese_Witherspoon_at_TIFF_2014.jpg",
"PayPal_San_Jose_Headquarters.jpg",
"Wuornos.jpg",
"Tom_Felton_Fan_Expo_2011.jpg",
"Khamenei_Leader_Iran_2022_(cropped).jpeg",
"Mark_Cuban_&_Doug_Ducey_(47384954432)_(cropped).jpg",
"HeatherLangenkamp.JPG",
"Burj_Khalifa.jpg",
"Tom_Hardy_by_Gage_Skidmore.jpg",
"0Dogo-argentino-22122251920.jpg",
"Jayam_Ravi_at_Naya_Gadget_Shop_Launch_Event.jpg",
"Emma_Stone_at_Maniac_UK_premiere_(cropped).jpg",
"Judy_Tenuta_2013.jpg",
"Bob-Marley_3_(cropped).jpg",
"Jen_Newsom_2018.jpeg",
"YuanEmperorAlbumGenghisPortrait.jpg",
"Lady_Gaga_at_Joe_Biden's_inauguration_(cropped_5).jpg",
"Sodoma_-_Elluin.jpg",
"Flipkart-main-office.jpg",
"Twitch_logo_2019.svg",
"200126_Lizzo_on_the_2020_Grammys_Red_Carpet.png",
"Gigi_Hadid._2015.jpg",
"Pornhub-logo.svg",
"Overwatch_2_full_logo.svg",
"The_Blue_Marble_(remastered).jpg",
"Encyclopaedia_Britannica_15_with_2002.jpg",
"Flag_of_Europe.svg",
"LeBron_James_vs_Yao_Ming_-_Olympics_2008.jpg",
"Roman_Empire_Trajan_117AD.png",
"Natalie_Portman_(48470988352)_(cropped).jpg",
"JenniferAnistonFeb09.jpg",
"Tom_Hanks_2016.jpg",
"051119SMcC0014.jpg",
"Molly_Ringwald_in_Greece_(cropped).jpg",
"National_Mall,_Lincoln_Memorial_04448v_(cropped).jpg",
"Ireland_(MODIS).jpg",
"Rudolf_Crown_Prince_of_Austria_LOC.jpg",
"2021-22_UN_Human_Development_Report.svg",
"Antony_Armstrong-Jones_1965_(cropped).jpg",
"Cillian_Murphy_Press_Conference_The_Party_Berlinale_2017_02cr.jpg",
"Kaley_Cuoco_by_Gage_Skidmore.jpg",
"Carmelo_Anthony_-_51958670372_(cropped).jpg",
"LinkedIn_Headquarters_Sunnyvale.jpg",
"Spas_vsederzhitel_sinay.jpg",
"G7_in_het_Catshuis.jpg",
"Quecksilberdampfgleichrichter_in_Betrieb.JPG",
"TwineBallCawkerKs.jpg",
"APEC出席国との首脳会談_日中首脳会談3(1).jpg",
"1986_Jeno's_Pizza_-_15_-_Willie_Davis_(cropped).jpg",
"Seal_of_Uttar_Pradesh.svg",
"George-W-Bush.jpeg",
"Chris_Pine_(43043463084)_(cropped).jpg",
"TechCrunch_Disrupt_2019_(48834853256)_(1).jpg",
"Jayam_Raja_at_Enna_Satham_Indha_Neram_Press_Meet.jpg",
"Animal_diversity.png",
"Geno_smith_2016.jpg",
"Emilia_Clarke_Dior_Rose_des_Vents.jpg",
"Shivpal_singh_Yadav.png",
"Baker_Mayfield_(cropped).jpg",
"Official_portrait_of_Suella_Braverman_MP_crop_2.jpg",
"Aishwarya_Lekshmi.jpg",
"Mark_Andrews_Ravens2020_(cropped_cropped).jpg",
"20210923—Wi_Ha-joon_위하준,_Squid_Game_promo,_ELLE_Taiwan_screenshot_(05m43s).jpg",
"Matt_Ryan_(basketball)_(cropped).jpg",
"Flag_of_the_Czech_Republic.svg",
"Bundesarchiv_Bild_183-S72707,_Heinrich_Himmler.jpg",
"Ancientlibraryalex.jpg",
"Flag_of_North_Korea.svg",
"Tesla_circa_1890.jpeg",
"Flag_of_South_Korea.svg",
"Flag_of_the_United_Nations.svg",
"Whitney_Houston_(cropped3).JPEG",
"Bruce_Lee_1973.jpg",
"Prince_Brussels_1986_(retouched).jpg",
"Sylvester_Stallone_Cannes_2019.jpg",
"Cain_kills_Abel.png",
"Nepal_(orthographic_projection).svg",
"Jennifer_Beals_at_L5.jpg",
"Salman_Khan_filmfare.jpg",
"Ramzan_Kadyrov_(2018-06-15)_02.jpg",
"Albert_Pujols_on_May_19,_2008.jpg",
"AdamLevine2011.jpg",
"Tatiana_Maslany_by_Gage_Skidmore_2.jpg",
"CES_2012_-_House_of_Marley_(Rohan_Marley).jpg",
"Rihanna_Fenty_2018.png",
"Alistair_Overeem.png",
"Luis_Alfredo_Garavito_Cubillos.jpg",
"Max_Thieriot_(cropped).jpg",
"Flag_of_Qatar.svg",
"Meghan_Markle_-_2018_(cropped).jpg",
"Heath_Ledger_(2).jpg",
"Map_of_USA_States_with_names_white.svg",
"Kylie_Jenner_in_2021.jpg",
"Dulquer_Salmaan_at_Zoya_Factor_Trailer_Launch_function_(cropped).jpg",
"Amal_Clooney_in_London_-_2018_(41999192931)_(cropped).jpg",
"ElectoralCollege2020.svg",
"Millie_Bobby_Brown_-_MBB_-_Portrait_1_-_SFM5_-_July_10,_2022_at_Stranger_Fan_Meet_5_People_Convention_(cropped).jpg",
"Josh_Allen_SEPT2021_(cropped2).jpg",
"Micah_Parsons_Cowboys-WFT_DEC2021_(cropped).jpg",
"Covid-19_SP_-_UTI_V._Nova_Cachoeirinha.jpg",
"Amouranth_in_2022.jpg",
"Glorilla.png",
"Cleo_Damianakes_1917.jpg",
"Mussolini_and_Hitler_1940_(retouched).jpg",
"George_H._W._Bush_presidential_portrait_(cropped).jpg",
"MontreGousset001.jpg",
"Building92microsoft.jpg",
"Martin_Luther_King,_Jr..jpg",
"François_Clouet_-_Mary,_Queen_of_Scots_(1542-87)_-_Google_Art_Project.jpg",
"Saddam_Hussein_in_1998.png",
"Winona_Ryder_2010_TIFF.jpg",
"Burke_Murdering_Margery_Campbell.jpg",
"Uma_Thurman_Cannes_2017_(cropped).jpg",
"Cate_Blanchett_Cannes_2018_2_(cropped).jpg",
"CHOGM_Commonwealth_Big_Lunch_on_April_17,_2018_-_007_(cropped).jpg",
"Pierce_Brosnan_Berlinale_2014_-_02_(cropped).jpg",
"Flag_of_Vietnam.svg",
"H._H._Holmes.jpg",
"Eric_Stoltz-2009_cropped.jpg",
"Aaron_Rodgers_2022.jpg",
"Jason_Sudeikis_South_by_Southwest_2019_(cropped).jpg",
"Sarah_Shahi_(26104742945)_(cropped).jpg",
"Jason_Momoa_(43055621224)_(cropped).jpg",
"Henry_Cavill_(48417913146)_(cropped).jpg",
"Harry_Potter_wordmark.svg",
"Luke_Macfarlane.jpg",
"Flag_of_Sweden.svg",
"Kim_Jong-un_April_2019_(cropped).jpg",
"Flag_of_Egypt.svg",
"Cloud_computing.svg",
"Flag_of_Austria.svg",
"Kwasi_Kwarteng_Official_Portrait_Cropped.jpg",
"Powódź_1997_Wrocław_018.jpg",
"Patrick_Mahomes_(51615475056).jpg",
"Hailey_Bieber_2020_2.jpg",
"2019-07-17_SG_Dynamo_Dresden_vs._Paris_Saint-Germain_by_Sandro_Halank–129_(cropped).jpg",
"Professor_Amr_El-Abbadi.jpeg",
"Billie_Eilish_2019_by_Glenn_Francis_(cropped)_2.jpg",
"MrBeast_frontface_2021.png",
"Darwin_Núñez_(cropped).jpg",
"Louisa_harland_diff_2021_1.jpg"
];
foreach( $titles as $title ) {
$file = $group->findFile( $title );
$html = '<table>';
$html .= '<tr><td>Before</td><td>After</td></tr>';
if ( $file ) {
$thumb = $file->transform( [
'width' => $size,
'height' => $size,
'lang' => 'en',
] );
$thumbAfter = $file->transform( [
'width' => $size,
'lang' => 'en',
] );
$style = "width: 70px; height: auto;";
$before = '<img src="' . $thumb->getUrl() . '" style="'. $style . '">';
$after = '<img src="' . $thumbAfter->getUrl() . '" style="'. $style . '">';
$html .= '<tr><td>' . $before . '</td><td>' . $after . '</td></tr>';
} else {
}
$html .= '</table>';
}
$this->getOutput()->addHTML( $html );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment