René's URL Explorer Experiment


Title: Size parameter doesn't support omitting length or width · Issue #36 · python-thumbnails/python-thumbnails · GitHub

Open Graph Title: Size parameter doesn't support omitting length or width · Issue #36 · python-thumbnails/python-thumbnails

X Title: Size parameter doesn't support omitting length or width · Issue #36 · python-thumbnails/python-thumbnails

Description: According to the docs at https://python-thumbnails.readthedocs.io/en/latest/creating-thumbnails.html size – String with the wanted thumbnail size. On the form: 200x200, 200 or x200. But using the second or third forms causes an exception...

Open Graph Description: According to the docs at https://python-thumbnails.readthedocs.io/en/latest/creating-thumbnails.html size – String with the wanted thumbnail size. On the form: 200x200, 200 or x200. But using the s...

X Description: According to the docs at https://python-thumbnails.readthedocs.io/en/latest/creating-thumbnails.html size – String with the wanted thumbnail size. On the form: 200x200, 200 or x200. But using the s...

Opengraph URL: https://github.com/python-thumbnails/python-thumbnails/issues/36

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Size parameter doesn't support omitting length or width","articleBody":"According to the docs at https://python-thumbnails.readthedocs.io/en/latest/creating-thumbnails.html\r\n\r\n`size – String with the wanted thumbnail size. On the form: 200x200, 200 or x200.`\r\n\r\nBut using the second or third forms causes an exception:\r\n\r\n```\r\n\u003e\u003e\u003e get_thumbnail('d:\\\\temp\\\\test.jpg', '200x200', crop='center') \r\n\u003cthumbnails.images.Thumbnail object at 0x0000022108309B08\u003e\r\n\u003e\u003e\u003e get_thumbnail('d:\\\\temp\\\\test.jpg', '200x', crop='center')    \r\nTraceback (most recent call last):\r\n  File \"\u003cstdin\u003e\", line 1, in \u003cmodule\u003e\r\n  File \"C:\\Users\\USER\\Envs\\cypress\\lib\\site-packages\\thumbnails\\__init__.py\", line 53, in get_thumbnail\r\n    size = engine.parse_size(size)\r\n  File \"C:\\Users\\USER\\Envs\\cypress\\lib\\site-packages\\thumbnails\\engines\\base.py\", line 183, in parse_size\r\n    return int(size.split('x')[0]), int(size.split('x')[1])\r\nValueError: invalid literal for int() with base 10: ''\r\n\u003e\u003e\u003e get_thumbnail('d:\\\\temp\\\\test.jpg', 'x200', crop='center')  \r\nTraceback (most recent call last):\r\n  File \"\u003cstdin\u003e\", line 1, in \u003cmodule\u003e\r\n  File \"C:\\Users\\USER\\Envs\\cypress\\lib\\site-packages\\thumbnails\\__init__.py\", line 54, in get_thumbnail\r\n    thumbnail.image = engine.get_thumbnail(original, size, crop, options)\r\n  File \"C:\\Users\\USER\\Envs\\cypress\\lib\\site-packages\\thumbnails\\engines\\base.py\", line 37, in get_thumbnail\r\n    image = self.create(original, size, crop, options)\r\n  File \"C:\\Users\\USER\\Envs\\cypress\\lib\\site-packages\\thumbnails\\engines\\base.py\", line 58, in create\r\n    crop = self.parse_crop(crop, self.get_image_size(image), size)\r\n  File \"C:\\Users\\USER\\Envs\\cypress\\lib\\site-packages\\thumbnails\\engines\\base.py\", line 209, in parse_crop\r\n    x_offset = self.calculate_offset(x_crop, original_size[0], size[0])\r\n  File \"C:\\Users\\USER\\Envs\\cypress\\lib\\site-packages\\thumbnails\\engines\\base.py\", line 226, in calculate_offset\r\n    min(percent * original_length / 100.0, original_length - length / 2) - length / 2)\r\nTypeError: unsupported operand type(s) for /: 'NoneType' and 'int'\r\n```","author":{"url":"https://github.com/roytang","@type":"Person","name":"roytang"},"datePublished":"2020-09-20T20:35:46.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/36/python-thumbnails/issues/36"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:d0d3cf97-a023-f9aa-ca3e-d9330a0fa37e
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idC2C0:992B3:6099E5:86F077:696A54B2
html-safe-noncec9200d30a6678b4918d15f01cf0a5871f9e2f3bad64e8c7d76d43cbc2418b573
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDMkMwOjk5MkIzOjYwOTlFNTo4NkYwNzc6Njk2QTU0QjIiLCJ2aXNpdG9yX2lkIjoiNDMwODMwMDEzNDY4MDc3NzkwNiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac9b7fa0c8a3a8278edf49032b46360ff0647eff7daa71ae788c56f6b584329fc1
hovercard-subject-tagissue:705181310
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python-thumbnails/python-thumbnails/36/issue_layout
twitter:imagehttps://opengraph.githubassets.com/63e34d9e10240c0d60497af9b923b58d4d9300bb465cbfe3f81af96f1294d925/python-thumbnails/python-thumbnails/issues/36
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/63e34d9e10240c0d60497af9b923b58d4d9300bb465cbfe3f81af96f1294d925/python-thumbnails/python-thumbnails/issues/36
og:image:altAccording to the docs at https://python-thumbnails.readthedocs.io/en/latest/creating-thumbnails.html size – String with the wanted thumbnail size. On the form: 200x200, 200 or x200. But using the s...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameroytang
hostnamegithub.com
expected-hostnamegithub.com
None3f871c8e07f0ae1886fa8dac284166d28b09ad5bada6476fc10b674e489788ef
turbo-cache-controlno-preview
go-importgithub.com/python-thumbnails/python-thumbnails git https://github.com/python-thumbnails/python-thumbnails.git
octolytics-dimension-user_id16475284
octolytics-dimension-user_loginpython-thumbnails
octolytics-dimension-repository_id32233986
octolytics-dimension-repository_nwopython-thumbnails/python-thumbnails
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id32233986
octolytics-dimension-repository_network_root_nwopython-thumbnails/python-thumbnails
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release63c426b30d262aba269ef14c40e3c817b384cd61
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python-thumbnails/python-thumbnails/issues/36#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython-thumbnails%2Fpython-thumbnails%2Fissues%2F36
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython-thumbnails%2Fpython-thumbnails%2Fissues%2F36
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=python-thumbnails%2Fpython-thumbnails
Reloadhttps://github.com/python-thumbnails/python-thumbnails/issues/36
Reloadhttps://github.com/python-thumbnails/python-thumbnails/issues/36
Reloadhttps://github.com/python-thumbnails/python-thumbnails/issues/36
python-thumbnails https://github.com/python-thumbnails
python-thumbnailshttps://github.com/python-thumbnails/python-thumbnails
Notifications https://github.com/login?return_to=%2Fpython-thumbnails%2Fpython-thumbnails
Fork 8 https://github.com/login?return_to=%2Fpython-thumbnails%2Fpython-thumbnails
Star 108 https://github.com/login?return_to=%2Fpython-thumbnails%2Fpython-thumbnails
Code https://github.com/python-thumbnails/python-thumbnails
Issues 11 https://github.com/python-thumbnails/python-thumbnails/issues
Pull requests 0 https://github.com/python-thumbnails/python-thumbnails/pulls
Actions https://github.com/python-thumbnails/python-thumbnails/actions
Projects 0 https://github.com/python-thumbnails/python-thumbnails/projects
Security Uh oh! There was an error while loading. Please reload this page. https://github.com/python-thumbnails/python-thumbnails/security
Please reload this pagehttps://github.com/python-thumbnails/python-thumbnails/issues/36
Insights https://github.com/python-thumbnails/python-thumbnails/pulse
Code https://github.com/python-thumbnails/python-thumbnails
Issues https://github.com/python-thumbnails/python-thumbnails/issues
Pull requests https://github.com/python-thumbnails/python-thumbnails/pulls
Actions https://github.com/python-thumbnails/python-thumbnails/actions
Projects https://github.com/python-thumbnails/python-thumbnails/projects
Security https://github.com/python-thumbnails/python-thumbnails/security
Insights https://github.com/python-thumbnails/python-thumbnails/pulse
Size parameter doesn't support omitting length or widthhttps://github.com/python-thumbnails/python-thumbnails/issues/36#top
https://github.com/roytang
https://github.com/roytang
roytanghttps://github.com/roytang
on Sep 20, 2020https://github.com/python-thumbnails/python-thumbnails/issues/36#issue-705181310
https://python-thumbnails.readthedocs.io/en/latest/creating-thumbnails.htmlhttps://python-thumbnails.readthedocs.io/en/latest/creating-thumbnails.html
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.